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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 6, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2026-01-23T15:24:04.556Z
- **Modified:** 2026-11-10T13:18:31.800Z

## Who should check

- Anyone running Linux \>= 528d3f190c98c8f7d9581f68db4af021696727b2, \< 8767f238b0e6c3d0b295ac6dce9fbe6a99bd1b9d; \>= 528d3f190c98c8f7d9581f68db4af021696727b2, \< b17818307446c5a8d925a39a792261dbfa930041; \>= 528d3f190c98c8f7d9581f68db4af021696727b2, \< 2985712dc76dfa670eb7fd607c09d4d48e5f5c6e; \>= 528d3f190c98c8f7d9581f68db4af021696727b2, \< 03fb1708b7d1e76aecebf767ad059c319845039f; \>= 528d3f190c98c8f7d9581f68db4af021696727b2, \< f490af47bbee02441e356a1e0b86e3b3dd5120ff; \>= 528d3f190c98c8f7d9581f68db4af021696727b2, \< 34f3ff52cb9fa7dbf04f5c734fcc4cb6ed5d1a95
- Anyone running Linux 5.12

## 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.

## Affected and fixed versions

- Linux: \>= 528d3f190c98c8f7d9581f68db4af021696727b2, \< 8767f238b0e6c3d0b295ac6dce9fbe6a99bd1b9d; \>= 528d3f190c98c8f7d9581f68db4af021696727b2, \< b17818307446c5a8d925a39a792261dbfa930041; \>= 528d3f190c98c8f7d9581f68db4af021696727b2, \< 2985712dc76dfa670eb7fd607c09d4d48e5f5c6e; \>= 528d3f190c98c8f7d9581f68db4af021696727b2, \< 03fb1708b7d1e76aecebf767ad059c319845039f; \>= 528d3f190c98c8f7d9581f68db4af021696727b2, \< f490af47bbee02441e356a1e0b86e3b3dd5120ff; \>= 528d3f190c98c8f7d9581f68db4af021696727b2, \< 34f3ff52cb9fa7dbf04f5c734fcc4cb6ed5d1a95 (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

- Upgrade Linux to 34f3ff52cb9fa7dbf04f5c734fcc4cb6ed5d1a95 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-22982. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-22982.md
Affected: Linux >= 528d3f190c98c8f7d9581f68db4af021696727b2, < 8767f238b0e6c3d0b295ac6dce9fbe6a99bd1b9d; >= 528d3f190c98c8f7d9581f68db4af021696727b2, < b17818307446c5a8d925a39a792261dbfa930041; >= 528d3f190c98c8f7d9581f68db4af021696727b2, < 2985712dc76dfa670eb7fd607c09d4d48e5f5c6e; >= 528d3f190c98c8f7d9581f6…
Fixed in: Linux 8767f238b0e6c3d0b295ac6dce9fbe6a99bd1b9d, Linux 2985712dc76dfa670eb7fd607c09d4d48e5f5c6e, Linux 03fb1708b7d1e76aecebf767ad059c319845039f, Linux 34f3ff52cb9fa7dbf04f5c734fcc4cb6ed5d1a95

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-22982 being exploited?

There is no confirmed exploitation: CVE-2026-22982 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-22982?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-22982?

Linux \>= 528d3f190c98c8f7d9581f68db4af021696727b2, \< 8767f238b0e6c3d0b295ac6dce9fbe6a99bd1b9d; \>= 528d3f190c98c8f7d9581f68db4af021696727b2, \< b17818307446c5a8d925a39a792261dbfa930041; \>= 528d3f190c98c8f7d9581f68db4af021696727b2, \< 2985712dc76dfa670eb7fd607c09d4d48e5f5c6e; \>= 528d3f190c98c8f7d9581f68db4af021696727b2, \< 03fb1708b7d1e76aecebf767ad059c319845039f; \>= 528d3f190c98c8f7d9581f68db4af021696727b2, \< f490af47bbee02441e356a1e0b86e3b3dd5120ff; \>= 528d3f190c98c8f7d9581f68db4af021696727b2, \< 34f3ff52cb9fa7dbf04f5c734fcc4cb6ed5d1a95; Linux 5.12.

### Is there a fix for CVE-2026-22982?

Yes. Fixed in Linux 8767f238b0e6c3d0b295ac6dce9fbe6a99bd1b9d, Linux 2985712dc76dfa670eb7fd607c09d4d48e5f5c6e, Linux 03fb1708b7d1e76aecebf767ad059c319845039f, Linux 34f3ff52cb9fa7dbf04f5c734fcc4cb6ed5d1a95. Upgrade Linux to 34f3ff52cb9fa7dbf04f5c734fcc4cb6ed5d1a95 or later.

### How do I check if I'm affected by CVE-2026-22982?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-22982>

HTML: <https://flawdb.com/CVE-2026-22982> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-22982>
