Ubuntu-focal-kernel/net
Vasily Averin a99ae8530f skb_expand_head() adjust skb->truesize incorrectly
Christoph Paasch reports [1] about incorrect skb->truesize
after skb_expand_head() call in ip6_xmit.
This may happen because of two reasons:
- skb_set_owner_w() for newly cloned skb is called too early,
before pskb_expand_head() where truesize is adjusted for (!skb-sk) case.
- pskb_expand_head() does not adjust truesize in (skb->sk) case.
In this case sk->sk_wmem_alloc should be adjusted too.

[1] https://lkml.org/lkml/2021/8/20/1082

Fixes: f1260ff15a ("skbuff: introduce skb_expand_head()")
Fixes: 2d85a1b31d ("ipv6: ip6_finish_output2: set sk into newly allocated nskb")
Reported-by: Christoph Paasch <christoph.paasch@gmail.com>
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/644330dd-477e-0462-83bf-9f514c41edd1@virtuozzo.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry-picked from commit 7f678def99)
CVE-2024-26921
Signed-off-by: Vinicius Peixoto <vinicius.peixoto@canonical.com>
Acked-by: Manuel Diewald <manuel.diewald@canonical.com>
Acked-by: Kevin Becker <kevin.becker@canonical.com>
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com>
2024-08-02 16:16:08 +02:00
..
6lowpan
9p net/9p: fix uninit-value in p9_client_rpc() 2024-07-05 10:52:03 +02:00
802
8021q
appletalk
atm
ax25
batman-adv batman-adv: Avoid infinite loop trying to resize local TT 2024-06-07 15:01:42 +02:00
bluetooth Bluetooth: Fix atomicity violation in {min, max}_key_size_set 2024-08-02 16:16:06 +02:00
bpf
bpfilter
bridge net: bridge: fix corrupted ethernet header on multicast-to-unicast 2024-07-05 10:51:53 +02:00
caif
can can: j1939: Fix UAF in j1939_sk_match_filter during setsockopt(SO_J1939_FILTER) 2024-03-28 15:18:43 +01:00
ceph
core skb_expand_head() adjust skb->truesize incorrectly 2024-08-02 16:16:08 +02:00
dcb
dccp
decnet
dns_resolver
dsa
ethernet ethernet: Add helper for assigning packet type when dest address does not match device address 2024-06-07 15:01:47 +02:00
hsr hsr: Handle failures in module init 2024-06-07 15:01:31 +02:00
ieee802154
ife
ipv4 net: fix __dst_negative_advice() race 2024-07-05 10:52:03 +02:00
ipv6 ipv6: prevent NULL dereference in ip6_output() 2024-08-02 16:16:07 +02:00
iucv net/iucv: fix the allocation size of iucv_path_table array 2024-06-07 15:01:23 +02:00
kcm net: kcm: fix incorrect parameter validation in the kcm_getsockopt) function 2024-06-07 15:01:27 +02:00
key
l2tp net l2tp: drop flow hash on forward 2024-07-05 10:51:51 +02:00
l3mdev
lapb
llc llc: call sock_orphan() at release time 2024-03-28 15:18:39 +01:00
mac80211 wifi: mac80211: fix ieee80211_bss_*_flags kernel-doc 2024-07-05 10:51:52 +02:00
mac802154
mpls
ncsi
netfilter netfilter: nfnetlink_queue: acquire rcu_read_lock() in instance_destroy_rcu() 2024-07-05 10:52:01 +02:00
netlabel
netlink netlink: Fix kernel-infoleak-after-free in __skb_datagram_iter 2024-04-26 10:54:10 +02:00
netrom netrom: fix possible dead-lock in nr_rt_ioctl() 2024-07-05 10:51:59 +02:00
nfc nfc: nci: Fix handling of zero-length payload packets in nci_rx_work() 2024-07-05 10:52:01 +02:00
nsh nsh: Restore skb->{protocol,data,mac_header} for outer header in nsh_gso_segment(). 2024-07-05 10:51:51 +02:00
openvswitch openvswitch: Set the skbuff pkt_type for proper pmtud support. 2024-07-05 10:52:01 +02:00
packet af_packet: do not call packet_read_pending() from tpacket_destruct_skb() 2024-07-05 10:51:59 +02:00
phonet phonet: fix rtm_phonet_notify() skb allocation 2024-07-05 10:51:53 +02:00
psample
qrtr
rds net/rds: fix possible cp null dereference 2024-06-07 15:01:38 +02:00
rfkill
rose
rxrpc rxrpc: Fix response to PING RESPONSE ACKs to a dead call 2024-03-28 15:18:40 +01:00
sched net/sched: act_skbmod: prevent kernel-infoleak 2024-06-07 15:01:39 +02:00
sctp
smc
strparser
sunrpc SUNRPC: Fix loop termination condition in gss_free_in_token_pages() 2024-07-05 10:52:02 +02:00
switchdev
tipc tipc: fix UAF in error path 2024-07-05 10:51:54 +02:00
tls tls: fix race between tx work scheduling and socket close 2024-07-05 10:51:50 +02:00
unix af_unix: Fix data races in unix_release_sock/unix_stream_sendmsg 2024-07-05 10:51:58 +02:00
vmw_vsock
wimax
wireless wifi: cfg80211: fix the order of arguments for trace events of the tx_rx_evt class 2024-07-05 10:51:55 +02:00
x25 net/x25: fix incorrect parameter validation in the x25_getsockopt() function 2024-06-07 15:01:27 +02:00
xdp xsk: validate user input for XDP_{UMEM|COMPLETION}_FILL_RING 2024-07-05 10:52:03 +02:00
xfrm net: fix __dst_negative_advice() race 2024-07-05 10:52:03 +02:00
Kconfig
Makefile
compat.c
socket.c
sysctl_net.c