Race Condition Vulnerability in Linux Kernel's Unix Domain Sockets

linux Updated 02 Oct 2025

Summary

10/06/2024
N/A
Yes i
Unrated
Not published

CVE-2024-36972: In the Linux kernel, the following vulnerability has been resolved: af_unix: Update unix_sk(sk)->oob_skb under sk_receive_queue lock. Affects linux versions < 6.1.94-1. Fixed in 6.1.94-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Linux kernel is the core component of Linux operating systems, responsible for managing hardware resources and providing essential services to software applications. It supports various functionalities, including process management, memory management, and networking. This vulnerability affects the Unix domain sockets, which facilitate inter-process communication on the same host. The issue arises from a race condition that can lead to a NULL pointer dereference, potentially causing system crashes or instability.

Vulnerability Detail

In the Linux kernel, a race condition exists between the garbage collection of closed sockets and the queuing of out-of-band (OOB) messages. Specifically, the function __unix_gc() attempts to clean up sockets that have been closed, while concurrently, the queue_oob() function can update the OOB message buffer. If the garbage collector drops the reference to the OOB message buffer while it is being updated, it results in a NULL pointer dereference, leading to a kernel panic. This vulnerability was reported by Billy Jheng Bing-Jhong and has been classified as CVE-2024-36972.

How To Fix

Minimum fixed version

6.1.94-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to apply the kernel updates as specified in the 'how_to_fix' section.

Conclusion

CVE-2024-36972 represents a significant vulnerability in the Linux kernel that can lead to serious system instability. It is essential for users to upgrade to the fixed versions of the kernel to protect their systems from potential exploitation. Regular monitoring for vulnerabilities using tools like Vulert can also enhance security posture.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2024-36972 is a vulnerability in the Linux kernel related to a race condition in Unix domain sockets that can lead to a NULL pointer dereference.

This vulnerability can cause kernel panics, leading to system crashes and potential data loss if exploited.

The vulnerability affects various versions of the Linux kernel prior to the fixed versions: 6.1.94-1 for Debian 12 and 6.9.7-1 for Debian 13.

You can use tools like Vulert, which monitors and alerts for open-source vulnerabilities in your software. You can check your application against this vulnerability using the Vulert playground without any signup.

While there are no specific workarounds, it is crucial to plan for an upgrade as soon as possible to mitigate the risks associated with this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.1.94-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback