Use-After-Free Vulnerability in Linux Kernel i3c Driver

linux Updated 02 Oct 2025

Summary

27/02/2025
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-57984: In the Linux kernel, the following vulnerability has been resolved: i3c: dw: Fix use-after-free in dw_i3c_master driver due to race condition In dw_i3c_common_probe, &master->hj_work is bound with dw_i3c_hj_work. Affects linux versions < 6.12.13-1. Fixed in 6.12.13-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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is a core component of many operating systems, providing essential services for hardware and software interaction. It supports various drivers, including the i3c driver, which manages I3C (Improved Inter-Integrated Circuit) devices. This vulnerability affects the i3c driver, specifically the dw_i3c_master driver, which is responsible for handling I3C master operations. The issue arises from a race condition that can lead to a use-after-free (UAF) scenario, potentially compromising system stability and security.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the dw_i3c_master driver due to a race condition. When the module is removed, the cleanup process can free the memory associated with the I3C master before the work associated with it is canceled. This can lead to a use-after-free situation where the freed memory is accessed, resulting in undefined behavior, crashes, or potential exploitation by malicious actors. The vulnerability is triggered when the dw_i3c_common_remove function is called, leading to a sequence of operations that improperly manage memory.

How To Fix

Minimum fixed version

6.12.13-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 patch by updating the package as described above.

Conclusion

The use-after-free vulnerability in the Linux kernel's i3c driver poses significant risks to system stability and security. It is crucial for users to update their systems to the patched version to mitigate these risks. Regular monitoring and vulnerability management practices, such as using Vulert, can help maintain the security of open-source software.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

A use-after-free vulnerability occurs when a program continues to use a memory location after it has been freed, potentially leading to crashes or exploitation.

You can use tools like Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected.

Not addressing this vulnerability can lead to system instability, crashes, or exploitation by attackers, compromising the security of your system.

Yes, this vulnerability affects specific versions of the Linux kernel, particularly those prior to version 6.12.13-1.

If immediate updates are not possible, consider isolating the affected system from critical networks and monitoring for unusual activity until a patch can be applied.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

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