# CVE-2026-22982: net: mscc: ocelot: Fix crash when adding interface under a lag

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- 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-02)
- Published: 2026-01-23T15:24:04.556Z
- Modified: 2026-11-10T13:18:31.800Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

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

net: mscc: ocelot: Fix crash when adding interface under a lag

Commit 15faa1f67ab4 ("lan966x: Fix crash when adding interface under a lag")
fixed a similar issue in the lan966x driver caused by a NULL pointer dereference.
The ocelot_set_aggr_pgids() function in the ocelot driver has similar logic
and is susceptible to the same crash.

This issue specifically affects the ocelot_vsc7514.c frontend, which leaves
unused ports as NULL pointers. The felix_vsc9959.c frontend is unaffected as
it uses the DSA framework which registers all ports.

Fix this by checking if the port pointer is valid before accessing it.

(As written by CVE List.)

## Affected

- Linux Linux: from 528d3f190c98c8f7d9581f68db4af021696727b2 before 8767f238b0e6c3d0b295ac6dce9fbe6a99bd1b9d; from 528d3f190c98c8f7d9581f68db4af021696727b2 before b17818307446c5a8d925a39a792261dbfa930041; from 528d3f190c98c8f7d9581f68db4af021696727b2 before 2985712dc76dfa670eb7fd607c09d4d48e5f5c6e; from 528d3f190c98c8f7d9581f68db4af021696727b2 before 03fb1708b7d1e76aecebf767ad059c319845039f; from 528d3f190c98c8f7d9581f68db4af021696727b2 before f490af47bbee02441e356a1e0b86e3b3dd5120ff; from 528d3f190c98c8f7d9581f68db4af021696727b2 before 34f3ff52cb9fa7dbf04f5c734fcc4cb6ed5d1a95; 5.12 (not affected: before 5.12; from 5.15.198 up to 5.15.*; from 6.1.161 up to 6.1.*; from 6.6.121 up to 6.6.*; from 6.12.66 up to 6.12.*; from 6.18.6 up to 6.18.*; from 6.19 up to *)
- linux linux_kernel: from 5.12 before 5.15.198; from 5.16 before 6.1.161; from 6.2 before 6.6.121; from 6.7 before 6.12.66; from 6.13 before 6.18.6; 6.19

## References

- <https://git.kernel.org/stable/c/8767f238b0e6c3d0b295ac6dce9fbe6a99bd1b9d> (patch)
- <https://git.kernel.org/stable/c/b17818307446c5a8d925a39a792261dbfa930041> (patch)
- <https://git.kernel.org/stable/c/2985712dc76dfa670eb7fd607c09d4d48e5f5c6e> (patch)
- <https://git.kernel.org/stable/c/03fb1708b7d1e76aecebf767ad059c319845039f> (patch)
- <https://git.kernel.org/stable/c/f490af47bbee02441e356a1e0b86e3b3dd5120ff> (patch)
- <https://git.kernel.org/stable/c/34f3ff52cb9fa7dbf04f5c734fcc4cb6ed5d1a95> (patch)
- <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Sources

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

---

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