ipv4: stop route notification sizing when nexthop group shrinks
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.160, 6.12.113, 6.18.57, 7.2.11
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: ipv4: stop route notification sizing when nexthop group shrinks Commit 680aea08e78c ("net: ipv4: Emit notification when fib hardware flags are changed") added an RCU-only fib_nlmsg_size() call for asynchronous hardware flag notifications. fib_nlmsg_size() checks fib_info_num_path() before each iteration, then fib_info_nhc() independently reloads nh->nh_grp. If RTM_NEWNEXTHOP replaces a group with fewer paths between those loads, fib_info_nhc() returns NULL and fib_nexthop_nlmsg_size() dereferences it. Stop sizing when the indexed path is absent. Nexthop groups are dense, so the current snapshot has no later path.
Timeline
- CVE published
- First seen by cve.now
Affected versions
- Linux Linux
From 680aea08e78c003292415518ad270bc20f9c80b1 · fixed in 72d9d17092bb37b0717f12042a0817d01a1f9e78; From 680aea08e78c003292415518ad270bc20f9c80b1 · fixed in ad1c9f1b98c92609e9bb2ae8f05916defc3b0a54; From 680aea08e78c003292415518ad270bc20f9c80b1 · fixed in c1f48d1c2d5e9efd904dbbc2f2b3d41543e55c49; From 680aea08e78c003292415518ad270bc20f9c80b1 · fixed in ad2b3a68b8a7d5d27de88e05674e4adb1ce46d88; From 680aea08e78c003292415518ad270bc20f9c80b1 · fixed in d3daa33c7af92e38f2274bbd2576f58bfbaf89e6
- Linux Linux
5.12
- KernelLinux
From 5.12.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.113; From 6.13.0 · fixed in 6.18.57; From 6.19.0 · fixed in 7.2.11