CVE-2023-1990
Linux Kernel vulnerability analysis and mitigation

Overview

A use-after-free flaw was found in ndlc_remove in drivers/nfc/st-nci/ndlc.c in the Linux Kernel, identified as CVE-2023-1990. The vulnerability was discovered by Zheng Wang and reported in March 2023. The issue affects the ST NCI NFC driver and occurs due to a race condition during device removal events (NVD, Ubuntu).

Technical details

The vulnerability stems from a race condition in the st-nci NFC adapter driver's ndlcremove function. The issue arises when there's a potential race between the work queue execution and driver removal, which could lead to a use-after-free condition. The bug affects both stncii2cremove and stncispi_remove functions. The CVSS 3 Severity Score for this vulnerability is 4.7 (Medium) (Ubuntu, Kernel Patch).

Impact

A physically proximate attacker could potentially exploit this vulnerability to cause a denial of service through a system crash. The impact is limited as this driver is not enabled in some distributions' official kernel configurations, such as Debian (Debian LTS).

Mitigation and workarounds

The issue has been fixed by modifying the ndlcremove function to ensure proper synchronization of work queues before cleanup. The fix involves adding cancelworksync(&ndlc->smwork) before stnciremove(ndlc->ndev) in the removal process. Multiple Linux distributions have released patches, including Ubuntu (various versions) and Debian (in versions 5.10.234-1 for bullseye and 6.1.128-1 for bookworm) (Kernel Patch, Debian Security).

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