CVE-2026-45849

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

State
Published
Severity
Not scored
Published
May 27, 2026
Updated
May 27, 2026
Reserved
May 13, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 960ec92774e152b677ccd0006abcab7b9dd814c2 to before 0b217a40156f497e09dd20d3f7baec40c785f386Affected
  • e83b49ecb569c9c5fa7cc30e55cf2c15f71f9f39 to before cc1b179f778f98270bdbbb48d183b4b6427ae198Affected
  • c5e12ac3beb0dd3a718296b2d8af5528e9ab728e to before 7ac58d8832802ec89baa7539e13e6d58a88cce04Affected
  • c5e12ac3beb0dd3a718296b2d8af5528e9ab728e to before 51c32ae7fae14552d79f7139614b77c1bbd57a48Affected
  • c5e12ac3beb0dd3a718296b2d8af5528e9ab728e to before 63da961381e0d979459dede713001f8452364477Affected
  • c5e12ac3beb0dd3a718296b2d8af5528e9ab728e to before 026f6513c5880c2c89e38ad66bbec2868f978605Affected
  • 609cd73bf38bbd48f1e695e01802114b01aa8811Affected
  • 6.1.107 to before 6.1.165Affected
  • 6.6.48 to before 6.6.128Affected
  • 6.10.7 to before 6.11Affected
LinuxLinux
  • 6.11Affected
  • before 6.11Not affected
  • 6.1.165 through 6.1.*Not affected
  • 6.6.128 through 6.6.*Not affected
  • 6.12.75 through 6.12.*Not affected
  • 6.18.14 through 6.18.*Not affected
  • 6.19.4 through 6.19.*Not affected
  • 7.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.