Use-After-Free Vulnerability in Linux Kernel's DRM File Handling

linux Updated 02 Oct 2025

Summary

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

DEBIAN-CVE-2024-39486: In the Linux kernel, the following vulnerability has been resolved: drm/drm_file: Fix pid refcounting race , Maxime Ripard , Thomas Zimmermann filp->pid is supposed to be a refcounted pointer; however, before this patch,... Affects linux versions < 6.9.8-1. Fixed in 6.9.8-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 a core component of many operating systems, providing essential services for hardware management, process control, and system security. The 'linux' package in Debian versions 13 and 14 is crucial for system stability and performance. This package includes the Direct Rendering Manager (DRM), which facilitates graphics rendering and management. The vulnerability in question affects the refcounting mechanism of process IDs (PIDs) within the DRM file handling, potentially leading to system instability or exploitation.

Vulnerability Detail

In the Linux kernel, a race condition exists in the drm_file_update_pid function, where the reference count of a struct pid is not properly managed. This can lead to a use-after-free condition, where a freed PID can be accessed, causing undefined behavior or system crashes. The vulnerability arises when two processes attempt to update the PID simultaneously, leading to one process freeing a PID while another is still using it. This issue is particularly concerning when CONFIG_PREEMPT_RCU is enabled, as it allows for more aggressive optimizations that can exacerbate the race condition.

How To Fix

Minimum fixed version

6.9.8-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 provided for this vulnerability. Users are advised to apply the patch as soon as it becomes available to mitigate risks associated with this issue.

Conclusion

The use-after-free vulnerability in the Linux kernel's DRM file handling poses significant risks to system stability and security. It is essential for users of Debian versions 13 and 14 to update their 'linux' package to the patched version 6.9.8-1 to mitigate these risks. Regular monitoring and prompt updates are crucial for maintaining system integrity.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability is a use-after-free condition in the Linux kernel's DRM file handling, which can lead to system instability or exploitation.

The vulnerability affects the 'linux' package in Debian versions 13 and 14 prior to the patched version 6.9.8-1.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.

While there are no specific workarounds, it is crucial to monitor the situation and apply the patch as soon as possible to mitigate risks.

Failure to address this vulnerability may lead to system crashes, instability, or exploitation by malicious actors, compromising system security.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.9.8-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