CVE-2024-26759: Vulnerability in linux-libc-dev package - Race condition in mm/swap

linux Updated 02 Oct 2025

Summary

03/04/2024
No i
Medium
5.5

CVE-2024-26759: In the Linux kernel, the following vulnerability has been resolved: mm/swap: fix race when skipping swapcache When skipping swapcache for SWP_SYNCHRONOUS_IO, if two or more threads swapin the same entry at the same time,... Affects linux versions 5.10.103-1 – 6.9.9-1. No fix is published. 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-libc-dev package is a development package that provides the necessary header files and libraries for compiling programs that use the Linux kernel interfaces. It is an essential component for building and running applications on Linux systems. The package is widely used in various distributions, including Debian. However, a vulnerability has been discovered in the package that could lead to data corruption and loss due to a race condition in the mm/swap module.

Vulnerability Detail

The vulnerability (CVE-2024-26759) arises from a race condition in the mm/swap module of the Linux kernel. When multiple threads attempt to swap in the same entry at the same time while skipping swapcache, they may end up with different pages. This can result in an ABA problem, where one thread installs a stalled page into the page table entry (PTE) while another thread swaps out the possibly modified page, causing data corruption. Additionally, the swap_free() function in ZRAM allows the swap device to discard entry content, potentially leading to data loss even if the page is not modified. This vulnerability can be triggered by specific conditions and has the potential to cause data corruption and loss.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. However, users can mitigate the risk by ensuring they have the latest version of the linux-libc-dev package installed. Additionally, implementing proper access controls and monitoring mechanisms can help detect and prevent potential data corruption or loss.

Conclusion

The linux-libc-dev package is vulnerable to a race condition in the mm/swap module, which can lead to data corruption and loss. It is crucial to update the package to the latest version that includes the necessary patch. Additionally, implementing proper access controls and monitoring mechanisms can help mitigate the risk. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The linux-libc-dev package provides header files and libraries for compiling programs that use Linux kernel interfaces. It is an essential component for building and running applications on Linux systems.

The vulnerability can lead to data corruption and loss due to a race condition in the mm/swap module. It can potentially affect systems using the linux-libc-dev package, leading to data integrity issues.

To fix this vulnerability, it is recommended to update the linux-libc-dev package to the latest version, which includes the patch for the race condition in the mm/swap module.

There are no specific workarounds mentioned for this vulnerability. However, keeping the linux-libc-dev package up to date and implementing proper access controls and monitoring mechanisms can help mitigate the risk.

Yes, the vulnerability can potentially lead to data loss, especially when using ZRAM. The swap_free() function in ZRAM allows the swap device to discard entry content, which can result in data loss even if the page is not modified.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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