CVE-2024-49998
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-49998 affects the Linux kernel's Distributed Switch Architecture (DSA) subsystem, specifically related to shutdown sequence issues in the lan9303 driver. The vulnerability was discovered by Alexander Sverdlin and involves two distinct problems during shutdown operations that could lead to NULL pointer dereference and race conditions (Kernel Git).

Technical details

The vulnerability presents two main issues: First, the lan9303 driver uniquely calls devgetdrvdata() at arbitrary runtime through the phystatemachine() call chain, which can continue after dsaswitchshutdown() leading to NULL pointer dereference. Second, there's a race condition in setting dp->conduit->dsaptr to NULL concurrent with receive packet processing, where dsaswitchrcv() performs multiple unchecked dereferences of dev->dsaptr without proper locking. The CVSS v3.1 base score is 4.7 (Medium) with vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability can result in system instability through NULL pointer dereferences and race conditions during shutdown operations. This could potentially lead to system crashes or denial of service conditions when shutting down network interfaces using the affected DSA driver (NVD).

Mitigation and workarounds

The issue has been patched in the Linux kernel by improving the shutdown sequence. The fix involves properly closing the conduit interface and adding netifdevicedetach() to prevent ioctls, rtnetlinks, and ethtool requests from propagating to the driver during shutdown. The patch ensures proper synchronization and prevents race conditions (Kernel Git).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management