android_kernel_motorola_sm6375/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Florian Westphal a452bc3deb netfilter: nf_tables: fix null deref due to zeroed list head
commit 580077855a40741cf511766129702d97ff02f4d9 upstream.

In nf_tables_updtable, if nf_tables_table_enable returns an error,
nft_trans_destroy is called to free the transaction object.

nft_trans_destroy() calls list_del(), but the transaction was never
placed on a list -- the list head is all zeroes, this results in
a null dereference:

BUG: KASAN: null-ptr-deref in nft_trans_destroy+0x26/0x59
Call Trace:
 nft_trans_destroy+0x26/0x59
 nf_tables_newtable+0x4bc/0x9bc
 [..]

Its sane to assume that nft_trans_destroy() can be called
on the transaction object returned by nft_trans_alloc(), so
make sure the list head is initialised.

Fixes: 55dd6f9307 ("netfilter: nf_tables: use new transaction infrastructure to handle table")
Reported-by: mingi cho <[email protected]>
Signed-off-by: Florian Westphal <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2022-08-25 11:17:27 +02:00
..
6lowpan
9p
802
8021q
appletalk
atm
ax25
batman-adv
bluetooth Bluetooth: L2CAP: Fix use-after-free caused by l2cap_chan_put 2022-08-03 11:59:37 +02:00
bpf
bpfilter
bridge netfilter: br_netfilter: do not skip all hooks with 0 priority 2022-07-21 20:59:24 +02:00
caif
can can: bcm: use call_rcu() instead of costly synchronize_rcu() 2022-07-12 16:30:46 +02:00
ceph
core tcp: Fix data-races around sysctl knobs related to SYN option. 2022-07-29 17:14:14 +02:00
dcb
dccp
decnet
dns_resolver
dsa
ethernet
hsr
ieee802154
ife
ipv4 tcp: Fix a data-race around sysctl_tcp_comp_sack_nr. 2022-08-03 11:59:40 +02:00
ipv6 net: ping6: Fix memleak in ipv6_renew_options(). 2022-08-03 11:59:39 +02:00
iucv
kcm
key Revert "net: af_key: add check for pfkey_broadcast in function pfkey_process" 2022-06-14 18:12:01 +02:00
l2tp ipv6: Fix signed integer overflow in l2tp_ip6_sendmsg 2022-06-22 14:11:21 +02:00
l3mdev
lapb
llc
mac80211 wifi: mac80211: fix queue selection for mesh/OCB interfaces 2022-07-21 20:59:17 +02:00
mac802154
mpls
ncsi
netfilter netfilter: nf_tables: fix null deref due to zeroed list head 2022-08-25 11:17:27 +02:00
netlabel
netlink
netrom
nfc
nsh
openvswitch net: openvswitch: fix parsing of nw_proto for IPv6 fragments 2022-06-29 08:58:44 +02:00
packet
phonet
psample
qrtr
rds
rfkill
rose net: rose: fix UAF bug caused by rose_t0timer_expiry 2022-07-12 16:30:46 +02:00
rxrpc rxrpc: Fix decision on when to generate an IDLE ACK 2022-06-14 18:11:38 +02:00
sched net/sched: act_api: Notify user space if any actions were flushed before error 2022-07-07 17:36:50 +02:00
sctp sctp: leave the err path free in sctp_stream_init to sctp_stream_free 2022-08-03 11:59:41 +02:00
smc net/smc: postpone sk_refcnt increment in connect() 2022-06-14 18:11:39 +02:00
strparser
sunrpc SUNRPC: Fix READ_PLUS crasher 2022-07-07 17:36:48 +02:00
switchdev
tipc net: tipc: fix possible refcount leak in tipc_sk_create() 2022-07-21 20:59:25 +02:00
tls net/tls: Fix race in TLS device down flow 2022-07-29 17:14:12 +02:00
unix af_unix: Fix a data-race in unix_dgram_peer_wake_me(). 2022-06-14 18:11:57 +02:00
vmw_vsock
wimax
wireless
x25
xdp
xfrm ip: Fix data-races around sysctl_ip_no_pmtu_disc. 2022-07-29 17:14:10 +02:00
compat.c
Kconfig
Makefile
socket.c
sysctl_net.c