# CVE-2026-74657: ipv4: Fix fib_nlmsg_size() for RTA_VIA nexthops

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-08-22T15:32:31.458Z
- Modified: 2026-11-06T17:19:52.760Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ipv4: Fix fib_nlmsg_size() for RTA_VIA nexthops

fib_nlmsg_size() still estimates nexthop space as if every gateway is
encoded as an IPv4 RTA_GATEWAY attribute. IPv4 routes can also carry an
IPv6 gateway, which fib_nexthop_info() dumps as RTA_VIA.

As a result, route notifications can allocate an skb that is too small.
fib_dump_info() then fails with -EMSGSIZE and rtmsg_fib() hits the
WARN_ON() that marks such failures as a fib_nlmsg_size() bug. With
panic_on_warn set, this becomes a kernel panic.

Mirror the actual nexthop dump layout in fib_nlmsg_size(): account for
IPv6 nexthop gateways dumped as RTA_VIA, for the no-header rtnexthop
layout used inside RTA_MULTIPATH, and for RTA_FLOW only when it is
actually present.

(As written by CVE List.)

## Affected

- Linux Linux: from d15662682db232da77136cd348f4c9df312ca6f9 before 57195f0ab5cfbb5ee0864e5aff15ceb48f5a5e28; from d15662682db232da77136cd348f4c9df312ca6f9 before 0f0ca602941d0a81ae9514943ca06c55159c6385; from d15662682db232da77136cd348f4c9df312ca6f9 before 5307a53599fa762c06e475ee4a375252074fd324; from d15662682db232da77136cd348f4c9df312ca6f9 before 7f80ad373ce4a7af5367ff273cea0f16e91387f3; from d15662682db232da77136cd348f4c9df312ca6f9 before 4a5dfbae5179f6574695012a980476254df2d295; from d15662682db232da77136cd348f4c9df312ca6f9 before a59edda6eda1252340354322d8ab318b2e9052fb; from d15662682db232da77136cd348f4c9df312ca6f9 before 9b22f13524fa0de0d963bbd3002df6c28bae3395; from d15662682db232da77136cd348f4c9df312ca6f9 before 4ff9548d84945d2cbf9e4c207288063a200ea397; 5.2 (not affected: before 5.2; from 5.10.267 up to 5.10.*; from 5.15.216 up to 5.15.*; from 6.1.183 up to 6.1.*; from 6.6.152 up to 6.6.*; from 6.12.104 up to 6.12.*; from 6.18.45 up to 6.18.*; from 7.1.9 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/57195f0ab5cfbb5ee0864e5aff15ceb48f5a5e28>
- <https://git.kernel.org/stable/c/0f0ca602941d0a81ae9514943ca06c55159c6385>
- <https://git.kernel.org/stable/c/5307a53599fa762c06e475ee4a375252074fd324>
- <https://git.kernel.org/stable/c/7f80ad373ce4a7af5367ff273cea0f16e91387f3>
- <https://git.kernel.org/stable/c/4a5dfbae5179f6574695012a980476254df2d295>
- <https://git.kernel.org/stable/c/a59edda6eda1252340354322d8ab318b2e9052fb>
- <https://git.kernel.org/stable/c/9b22f13524fa0de0d963bbd3002df6c28bae3395>
- <https://git.kernel.org/stable/c/4ff9548d84945d2cbf9e4c207288063a200ea397>

## Sources

- CVE List: [CVE-2026-74657](https://www.cve.org/CVERecord?id=CVE-2026-74657), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2026-74657](https://nvd.nist.gov/vuln/detail/CVE-2026-74657), Public domain, modified 2026-11-06

---

Page: https://cve.day/CVE-2026-74657 · Whole record: https://cve.day/CVE-2026-74657.json · Rebuilt by cve.day 2026-11-25T22:59:34.920Z
