Back

MEDIUM

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

Published Jan 23, 2026

Description

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 products

Remediation

No remediation recorded yet.

References (13)

Change history (0)

No recorded changes yet.

Sources

CVE.org / MITRE

Status PUBLISHED
Assigner Linux
Published Jan 23, 2026
Updated Sep 8, 2026
Reserved Jan 13, 2026

CISA Vulnrichment

No data

NVD

Status Modified
Modified Jul 14, 2026

Red Hat

Public date Jan 23, 2026
Bugzilla 2432393

ENISA EUVD

Assigner Linux
Published Jan 23, 2026
Updated Sep 8, 2026

GitHub

No data