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.
Published: 2026-05-27
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The ocelot driver contained a race condition because the function that transmits injected frames did not hold the required injection group lock. This code path can corrupt kernel state or cause a crash when concurrent accesses occur, leading to a denial of service. The missing lock protection creates a scenario where attacker‑controlled driver interactions or crafted network traffic could trigger the race, potentially exposing the system to critical instability or exploitation if the attacker crafts input to corrupt memory.

Affected Systems

All Linux kernel releases that contain the ocelot network driver before the patch that introduces lock protection around the registration injection path are affected. The issue is tied to the ocelot driver implementation used in kernel versions prior to the inclusion of the missing lock fix.

Risk and Exploitability

No EPSS score is available, and the vulnerability is not listed in CISA's KEV catalog, indicating that widespread exploitation has not been observed. However, because the flaw involves a race condition in kernel space, the potential impact is severe when an attacker can influence network traffic directed to the affected driver. The likely attack vector is a local or remote attacker who can generate traffic processed by the ocelot driver to trigger the race, causing a kernel crash or data corruption.

Generated by OpenCVE AI on May 27, 2026 at 16:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the patch adding lock protection in ocelot_port_xmit_inj()
  • If a kernel update is not immediately available, disable the ocelot driver or its injection functionality to reduce exposure until the patch is applied
  • Enable kernel lockdep during testing to detect any remaining locking issues in related code paths

Generated by OpenCVE AI on May 27, 2026 at 16:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 27 May 2026 17:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362
CWE-367

Wed, 27 May 2026 14:15:00 +0000

Type Values Removed Values Added
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.
Title net: mscc: ocelot: add missing lock protection in ocelot_port_xmit_inj()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-05-27T12:15:15.494Z

Reserved: 2026-05-13T15:03:33.078Z

Link: CVE-2026-45849

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-05-27T14:16:56.850

Modified: 2026-05-27T14:48:31.480

Link: CVE-2026-45849

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-27T17:00:17Z

Weaknesses