# CVE-2026-98031: nexthop: Initialize extack in remove_nh_grp_entry()

- 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.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-09-25T10:23:47.562Z
- Modified: 2026-10-19T10:17:57.120Z
- Assigned by: Linux

## Description

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

nexthop: Initialize extack in remove_nh_grp_entry()

remove_nh_grp_entry() prints the extack message when a listener fails
to replace the reduced nexthop group. However, extack is not
initialized and listeners are not required to set a message when
returning an error. Neither netdevsim nor mlxsw do so when an
allocation fails, resulting in the dereference of an uninitialized
stack pointer.

Fix by zero-initializing extack, as was done in commit 6347c5314cee
("nexthop: initialize extack in nh_res_bucket_migrate()").

(As written by CVE List.)

## Affected

- Linux Linux: from 833a1065eeb14437a9a0dfa9dad06ea09894e0b5 before 35d9ec61466109ef0c2de87067338d929f629527; from 833a1065eeb14437a9a0dfa9dad06ea09894e0b5 before 704319510af2179cf03955747d714ab291075c25; from 833a1065eeb14437a9a0dfa9dad06ea09894e0b5 before 17acbcd4c5a6ca3dd3f9e52eb203c9175bde609a; from 833a1065eeb14437a9a0dfa9dad06ea09894e0b5 before 030c878eaedf0449e2b5401a0a0146d0afcc645e; from 833a1065eeb14437a9a0dfa9dad06ea09894e0b5 before d643cea4248668dc493c513aa7cbc6505eb1a4a9; from 833a1065eeb14437a9a0dfa9dad06ea09894e0b5 before d80677ad7aa5bebfccfd58caa4852b65abe70561; from 833a1065eeb14437a9a0dfa9dad06ea09894e0b5 before 5bd9e4e7cdaa03879e9b73b12ab52cceb1edd55b; 5.11 (not affected: before 5.11; from 5.15.222 up to 5.15.*; from 6.1.189 up to 6.1.*; from 6.6.158 up to 6.6.*; from 6.12.111 up to 6.12.*; from 6.18.53 up to 6.18.*; from 7.2.7 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/35d9ec61466109ef0c2de87067338d929f629527>
- <https://git.kernel.org/stable/c/704319510af2179cf03955747d714ab291075c25>
- <https://git.kernel.org/stable/c/17acbcd4c5a6ca3dd3f9e52eb203c9175bde609a>
- <https://git.kernel.org/stable/c/030c878eaedf0449e2b5401a0a0146d0afcc645e>
- <https://git.kernel.org/stable/c/d643cea4248668dc493c513aa7cbc6505eb1a4a9>
- <https://git.kernel.org/stable/c/d80677ad7aa5bebfccfd58caa4852b65abe70561>
- <https://git.kernel.org/stable/c/5bd9e4e7cdaa03879e9b73b12ab52cceb1edd55b>

## Sources

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

---

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