Linux · Linux Kernel · CVE-2024-26960
Name of the Vulnerable Software and Affected Versions:
Linux kernel (affected versions not specified)
Description:
The issue is related to a race condition between the `free swap and cache()` function and the `swapoff()` function in the Linux kernel's memory management subsystem. This could potentially allow an attacker to cause a denial of service by accessing freed memory. The problem is theoretical and has not been proven with a test case, but it has been agreed upon through code review that it is possible. The fix involves using `get swap device()` and `put swap device()` to stall `swapoff()`.
Technical details about exploitation include:
- **Function Names:** `free swap and cache()`, `swapoff()`, `swap page trans huge swapped()`, ` try to reclaim swap()`, `folio free swap()`, `delete from swap cache()`, `put swap folio()`, `free swap slot()`, `swapcache free entries()`, `swap entry free()`, and `swap range free()`.
- **Variables:** `si->inuse pages`, `count`, `nr entries`.
Recommendations:
At the moment, there is no information about a newer version that contains a fix for this vulnerability.