cbcvebase.
CVE-2024-35969
published 2024-05-20

CVE-2024-35969: In the Linux kernel, the following vulnerability has been resolved: ipv6: fix race condition between ipv6_get_ifaddr and ipv6_del_addr Although ipv6_get_ifaddr…

PriorityP343high8.8CVSS 3.1
AVAACLPRNUINSUCHIHAH
EPSS
0.38%
30.3th percentile
In the Linux kernel, the following vulnerability has been resolved: ipv6: fix race condition between ipv6_get_ifaddr and ipv6_del_addr Although ipv6_get_ifaddr walks inet6_addr_lst under the RCU lock, it still means hlist_for_each_entry_rcu can return an item that got removed from the list. The memory itself of such item is not freed thanks to RCU but nothing guarantees the actual content of the memory is sane. In particular, the reference count can be zero. This can happen if ipv6_del_addr is called in parallel. ipv6_del_addr removes the entry from inet6_addr_lst (hlist_del_init_rcu(&ifp->addr_lst)) and drops all references (__in6_ifa_put(ifp) + in6_ifa_put(ifp)). With bad enough timing, this can happen: 1. In ipv6_get_ifaddr, hlist_for_each_entry_rcu returns an entry. 2. Then, the whole ipv6_del_addr is executed for the given entry. The reference count drops to zero and kfree_rcu is scheduled. 3. ipv6_get_ifaddr continues and tries to increments the reference count (in6_ifa_hold). 4. The rcu is unlocked and the entry is freed. 5. The freed entry is returned. Prevent increasing of the reference count in such case. The name in6_ifa_hold_safe is chosen to mimic the existing fib6_info_hold_safe. [ 41.506330] refcount_t: addition on 0; use-after-free. [ 41.506760] WARNING: CPU: 0 PID: 595 at lib/refcount.c:25 refcount_warn_saturate+0xa5/0x130 [ 41.507413] Modules linked in: veth bridge stp llc [ 41.507821] CPU: 0 PID: 595 Comm: python3 Not tainted 6.9.0-rc2.main-00208-g49563be82afa #14 [ 41.508479] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996) [ 41.509163] RIP: 0010:refcount_warn_saturate+0xa5/0x130 [ 41.509586] Code: ad ff 90 0f 0b 90 90 c3 cc cc cc cc 80 3d c0 30 ad 01 00 75 a0 c6 05 b7 30 ad 01 01 90 48 c7 c7 38 cc 7a 8c e8 cc 18 ad ff 90 0b 90 90 c3 cc cc cc cc 80 3d 98 30 ad 01 00 0f 85 75 ff ff ff [ 41.510956] RSP: 0018:ffffbda3c026baf0 EFLAGS: 00010282 [ 41.511368] RAX: 0000000000000000 RBX: ffff9e9c46914800 RCX: 0000000000000000 [ 41.511910] R

Affected

28 ranges· showing 25
VendorProductVersion rangeFixed in
debiandebian_linux——
debianlinux< linux 6.1.90-1 (bookworm)linux 6.1.90-1 (bookworm)
linuxlinux——
linuxlinux>= 5c578aedcb21d79eeb4e9cf04ca5b276ac82614c < b4b3b69a19016d4e7fbdbd1dbcc184915eb862e1b4b3b69a19016d4e7fbdbd1dbcc184915eb862e1
linuxlinux>= 5c578aedcb21d79eeb4e9cf04ca5b276ac82614c < cca606e14264098cba65efa82790825dbf69e903cca606e14264098cba65efa82790825dbf69e903
linuxlinux>= 5c578aedcb21d79eeb4e9cf04ca5b276ac82614c < 3fb02ec57ead2891a2306af8c51a306bc5945e703fb02ec57ead2891a2306af8c51a306bc5945e70
linuxlinux>= 5c578aedcb21d79eeb4e9cf04ca5b276ac82614c < 4b19e9507c275de0cfe61c24db69179dc52cf9fb4b19e9507c275de0cfe61c24db69179dc52cf9fb
linuxlinux>= 5c578aedcb21d79eeb4e9cf04ca5b276ac82614c < de76ae9ea1a6cf9e77fcec4f2df2904e26c23cebde76ae9ea1a6cf9e77fcec4f2df2904e26c23ceb
linuxlinux>= 5c578aedcb21d79eeb4e9cf04ca5b276ac82614c < 01b11a0566670612bd464a932e5ac2eae53d865201b11a0566670612bd464a932e5ac2eae53d8652
linuxlinux>= 5c578aedcb21d79eeb4e9cf04ca5b276ac82614c < 6cdb20c342cd0193d3e956e3d83981d0f438bb836cdb20c342cd0193d3e956e3d83981d0f438bb83
linuxlinux>= 5c578aedcb21d79eeb4e9cf04ca5b276ac82614c < 7633c4da919ad51164acbf1aa322cc1a3ead61297633c4da919ad51164acbf1aa322cc1a3ead6129
linuxlinux_kernel——
linuxlinux_kernel——
linuxlinux_kernel——
linuxlinux_kernel>= 0 < 5.10.216-15.10.216-1
linuxlinux_kernel>= 0 < 6.1.90-16.1.90-1
linuxlinux_kernel>= 0 < 6.8.9-16.8.9-1
linuxlinux_kernel>= 0 < 6.8.9-16.8.9-1
linuxlinux_kernel>= 0 < 5.4.0-189.2095.4.0-189.209
linuxlinux_kernel>= 0 < 5.15.0-116.1265.15.0-116.126
linuxlinux_kernel>= 0 < 6.8.0-38.386.8.0-38.38
linuxlinux_kernel>= 2.6.35 < 4.19.3134.19.313
linuxlinux_kernel>= 4.20 < 5.4.2755.4.275
linuxlinux_kernel>= 5.11 < 5.15.1565.15.156
linuxlinux_kernel>= 5.16 < 6.1.876.1.87

CVSS provenance

nvdv3.18.8HIGHCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
osv7.0HIGH
vendor_ubuntu7.0HIGH
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.