linux/net
Benedict Wong f6d2aa322c xfrm: Check if_id in inbound policy/secpath match
[ Upstream commit 8680407b6f ]

This change ensures that if configured in the policy, the if_id set in
the policy and secpath states match during the inbound policy check.
Without this, there is potential for ambiguity where entries in the
secpath differing by only the if_id could be mismatched.

Notably, this is checked in the outbound direction when resolving
templates to SAs, but not on the inbound path when matching SAs and
policies.

Test: Tested against Android kernel unit tests & CTS
Signed-off-by: Benedict Wong <benedictwong@google.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-06-09 10:34:10 +02:00
..
6lowpan
9p
802
8021q vlan: fix a potential uninit-value in vlan_dev_hard_start_xmit() 2023-05-24 17:32:47 +01:00
appletalk
atm
ax25
batman-adv
bluetooth bluetooth: Add cmd validity checks at the start of hci_sock_ioctl() 2023-06-05 09:26:21 +02:00
bpf
bpfilter
bridge bridge: always declare tunnel functions 2023-05-24 17:32:48 +01:00
caif
can can: isotp: recvmsg(): allow MSG_CMSG_COMPAT flag 2023-05-24 17:32:49 +01:00
ceph
core rtnetlink: call validate_linkmsg in rtnl_create_link 2023-06-09 10:34:05 +02:00
dcb
dccp
dns_resolver
dsa
ethernet
ethtool ethtool: Fix uninitialized number of lanes 2023-05-17 11:53:37 +02:00
hsr
ieee802154
ife
ipv4 tcp: fix mishandling when the sack compression is deferred. 2023-06-09 10:34:05 +02:00
ipv6 ipv{4,6}/raw: fix output xfrm lookup wrt protocol 2023-06-05 09:26:16 +02:00
iucv
kcm
key af_key: Reject optional tunnel/BEET mode templates in outbound policies 2023-05-24 17:32:43 +01:00
l2tp
l3mdev
lapb
llc net: deal with most data-races in sk_wait_event() 2023-05-24 17:32:32 +01:00
mac80211 wifi: mac80211: Abort running color change when stopping the AP 2023-05-24 17:32:46 +01:00
mac802154
mctp
mpls
mptcp mptcp: add annotations around sk->sk_shutdown accesses 2023-06-09 10:34:06 +02:00
ncsi net/ncsi: clear Tx enable mode when handling a Config required AEN 2023-05-17 11:53:32 +02:00
netfilter netfilter: ctnetlink: Support offloaded conntrack entry deletion 2023-06-05 09:26:22 +02:00
netlabel
netlink net/netlink: fix NETLINK_LIST_MEMBERSHIPS length report 2023-06-09 10:34:03 +02:00
netrom netrom: fix info-leak in nr_write_internal() 2023-06-09 10:34:01 +02:00
nfc
nsh net: nsh: Use correct mac_offset to unwind gso skb in nsh_gso_segment() 2023-05-24 17:32:45 +01:00
openvswitch
packet af_packet: do not use READ_ONCE() in packet_bind() 2023-06-09 10:34:02 +02:00
phonet
psample
qrtr
rds
rfkill
rose
rxrpc rxrpc: Fix hard call timeout units 2023-05-17 11:53:35 +02:00
sched net/sched: flower: fix possible OOB write in fl_set_geneve_opt() 2023-06-09 10:34:04 +02:00
sctp inet: Add IP_LOCAL_PORT_RANGE socket option 2023-06-05 09:26:16 +02:00
smc net/smc: Don't use RMBs not mapped to new link in SMCRv2 ADD LINK 2023-06-09 10:34:03 +02:00
strparser
sunrpc nfsd: fix double fget() bug in __write_ports_addfd() 2023-06-09 10:34:04 +02:00
switchdev
tipc tipc: check the bearer min mtu properly when setting it by netlink 2023-05-24 17:32:46 +01:00
tls tls: improve lockless access safety of tls_err_abort() 2023-06-09 10:34:01 +02:00
unix bpf, sockmap: Pass skb ownership through read_skb 2023-06-05 09:26:18 +02:00
vmw_vsock vsock: avoid to close connected socket after the timeout 2023-05-24 17:32:44 +01:00
wireless wifi: cfg80211: Drop entries with invalid BSSIDs in RNR 2023-05-24 17:32:46 +01:00
x25
xdp
xfrm xfrm: Check if_id in inbound policy/secpath match 2023-06-09 10:34:10 +02:00
compat.c
devres.c
Kconfig
Kconfig.debug
Makefile
socket.c net: annotate sk->sk_err write from do_recvmmsg() 2023-05-24 17:32:32 +01:00
sysctl_net.c