# CVE-2026-45849: net: mscc: ocelot: add missing lock protection in ocelot_port_xmit_inj()

- 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.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-05-27T12:15:15.494Z
- Modified: 2026-06-25T21:03:35.277Z
- Weaknesses: CWE-667
- Assigned by: Linux

## Description

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

net: mscc: ocelot: add missing lock protection in ocelot_port_xmit_inj()

ocelot_port_xmit_inj() calls ocelot_can_inject() and
ocelot_port_inject_frame() without holding the injection group lock.
Both functions contain lockdep_assert_held() for the injection lock,
and the correct caller felix_port_deferred_xmit() properly acquires
the lock using ocelot_lock_inj_grp() before calling these functions.

Add ocelot_lock_inj_grp()/ocelot_unlock_inj_grp() around the register
injection path to fix the missing lock protection. The FDMA path is not
affected as it uses its own locking mechanism.

(As written by CVE List.)

## Affected

- Linux Linux: from 960ec92774e152b677ccd0006abcab7b9dd814c2 before 0b217a40156f497e09dd20d3f7baec40c785f386; from e83b49ecb569c9c5fa7cc30e55cf2c15f71f9f39 before cc1b179f778f98270bdbbb48d183b4b6427ae198; from c5e12ac3beb0dd3a718296b2d8af5528e9ab728e before 7ac58d8832802ec89baa7539e13e6d58a88cce04; from c5e12ac3beb0dd3a718296b2d8af5528e9ab728e before 51c32ae7fae14552d79f7139614b77c1bbd57a48; from c5e12ac3beb0dd3a718296b2d8af5528e9ab728e before 63da961381e0d979459dede713001f8452364477; from c5e12ac3beb0dd3a718296b2d8af5528e9ab728e before 026f6513c5880c2c89e38ad66bbec2868f978605; 609cd73bf38bbd48f1e695e01802114b01aa8811; from 6.1.107 before 6.1.165; from 6.6.48 before 6.6.128; from 6.10.7 before 6.11; 6.11 (not affected: before 6.11; from 6.1.165 up to 6.1.*; from 6.6.128 up to 6.6.*; from 6.12.75 up to 6.12.*; from 6.18.14 up to 6.18.*; from 6.19.4 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.1.107 before 6.1.165; from 6.6.48 before 6.6.128; from 6.10.7 before 6.11; from 6.11.1 before 6.12.75; from 6.13 before 6.18.14; from 6.19 before 6.19.4; 6.11

## References

- <https://git.kernel.org/stable/c/0b217a40156f497e09dd20d3f7baec40c785f386> (patch)
- <https://git.kernel.org/stable/c/cc1b179f778f98270bdbbb48d183b4b6427ae198> (patch)
- <https://git.kernel.org/stable/c/7ac58d8832802ec89baa7539e13e6d58a88cce04> (patch)
- <https://git.kernel.org/stable/c/51c32ae7fae14552d79f7139614b77c1bbd57a48> (patch)
- <https://git.kernel.org/stable/c/63da961381e0d979459dede713001f8452364477> (patch)
- <https://git.kernel.org/stable/c/026f6513c5880c2c89e38ad66bbec2868f978605> (patch)

## Sources

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

---

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