CVE-2025-23155 Details
Description
In the Linux kernel, the following vulnerability has been resolved: net: stmmac: Fix accessing freed irq affinity_hint In stmmac_request_irq_multi_msi(), a pointer to the stack variable cpu_mask is passed to irq_set_affinity_hint(). This value is stored in irq_desc->affinity_hint, but once stmmac_request_irq_multi_msi() returns, the pointer becomes dangling. The affinity_hint is exposed via procfs with S_IRUGO permissions, allowing any unprivileged process to read it. Accessing this stale pointer can lead to: - a kernel oops or panic if the referenced memory has been released and unmapped, or - leakage of kernel data into userspace if the memory is re-used for other purposes. All platforms that use stmmac with PCI MSI (Intel, Loongson, etc) are affected.
A vulnerability in the Linux kernel's STMMAC network driver was addressed, concerning improper management of the IRQ affinity hint. The issue arose because the cpumask was defined as a local variable, while its pointer could be accessed from procfs after being saved to irq_desc, potentially leading to the use of freed memory. The vulnerability has been resolved by ensuring the cpumask is persistent, using cpumask_of(cpu#) to maintain its validity.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/2fbf67ddb8a0d0efc00d2df496a9843ec318d48b | kernel.org | Patch |
| https://git.kernel.org/stable/c/442312c2a90d60c7a5197246583fa91d9e579985 | kernel.org | Patch |
| https://git.kernel.org/stable/c/960dab23f6d405740c537d095f90a4ee9ddd9285 | kernel.org | Patch |
| https://git.kernel.org/stable/c/9e51a6a44e2c4de780a26e8fe110d708e806a8cd | kernel.org | Patch |
| https://git.kernel.org/stable/c/c60d101a226f18e9a8f01bb4c6ca2b47dfcb15ef | kernel.org | Patch |
| https://git.kernel.org/stable/c/e148266e104fce396ad624079a6812ac3a9982ef | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-Other | Weakness Not in a Standard CWE Category | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.13, < 6.12.36 >= 6.13, < 6.13.12 >= 6.14, < 6.14.3 |
CPE
Remediation
| |
Change History
9 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Mar 17, 2026 | Modified Analysis | [email protected] |
| Feb 19, 2026 | CVE Modified | kernel.org |
| Nov 24, 2025 | CVE Modified | kernel.org |
| Nov 5, 2025 | Initial Analysis | [email protected] |
| Sep 29, 2025 | CVE Modified | kernel.org |
| Jul 6, 2025 | CVE Modified | kernel.org |
| May 1, 2025 | New CVE Received | kernel.org |