CVE-2023-3397
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2023-3397 is a race condition vulnerability discovered in the Linux Kernel's JFS (Journaling File System) implementation. The vulnerability exists between the functions lmLogClose and txEnd, which can be executed in different threads. This security flaw was disclosed on November 1, 2023, and affects the Linux Kernel's JFS component. The vulnerability allows a local attacker with normal user privileges to potentially crash the system or leak internal kernel information (NVD, Ubuntu).

Technical details

The vulnerability stems from a race condition between two functions: lmLogClose and txEnd, which can be executed in different threads. The race condition occurs when one thread executes lmLogClose and frees the log while another thread attempts to access it in txEnd. This can lead to a use-after-free condition when clearbit(logFLUSH, &log->flag) is called after the log has been freed. The vulnerability has been assigned a CVSS v3.1 base score of 6.3 (Medium) with the vector string CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H (NVD).

Impact

The exploitation of this vulnerability can result in system crashes or the leakage of internal kernel information. This can affect system stability and potentially expose sensitive kernel data to local attackers with normal user privileges (NVD).

Mitigation and workarounds

A fix has been proposed by adding a mutex lock named txEndlmLogClosemutex to prevent the race condition between lmLogClose and txEnd functions. The patch includes modifications to multiple files in the JFS implementation to implement proper synchronization between these functions (Kernel Patch).

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