CVE-2024-57979
Description
A flaw was found in the Linux kernel's Pulse Per Second (PPS) subsystem. This flaw can lead to a Denial of Service (DoS) or potentially arbitrary code execution due to a use-after-free condition. The vulnerability occurs when a PPS device is unregistered or removed while active user-space references to the device are still maintained.
Statement
A PPS source could free its pps_device and embedded cdev after cdev_del even though an existing open file could still reach the cdev operations. Later file release calls cdev_put on the freed object and the reported results include refcount underflow, list corruption, a kernel BUG, and kernel panic. The demonstrated primitive is a kernel heap use after free rather than a warning only condition. For the CVSS the PR:L value is selected because a local user or service must be able to open the PPS character device and retain the file descriptor. AC:H reflects the additional need for source unregister or device teardown while that descriptor remains open. Availability impact is high. Limited confidentiality and integrity impact is defensible for the base score because freed kernel memory is accessed and modified, while the paranoid score accounts for a plausible but unproven privilege escalation path if the freed object is reclaimed with attacker influenced data.
Mitigation
To mitigate this issue, prevent module pps_core from being loaded. Please see https://access.redhat.com/solutions/41278 for how to blacklist a kernel module to prevent it from loading automatically.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 4.7 | N/A | 7.8 |
| Attack Vector | Local | N/A | Local |
| Attack Complexity | High | N/A | Low |
| Privileges Required | Low | N/A | Low |
| User Interaction | None | N/A | None |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality | None | N/A | High |
| Integrity Impact | None | N/A | High |
| Availability Impact | High | N/A | High |
Vector
Red Hat: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
cve.org: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Understanding the Weakness (CWE)
Confidentiality
Technical Impact: Read Memory
If the expired pointer is used in a read operation, an attacker might be able to control data read in by the application.
Availability
Technical Impact: DoS: Crash, Exit, or Restart
If the expired pointer references a memory location that is not accessible to the product, or points to a location that is "malformed" (such as NULL) or larger than expected by a read or write operation, then a crash may occur.
Integrity,Confidentiality,Availability
Technical Impact: Execute Unauthorized Code or Commands
If the expired pointer is used in a function call, or points to unexpected data in a write operation, then code execution may be possible.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.