# CVE-2025-23155: net: stmmac: Fix accessing freed irq affinity\_hint

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-05-01T12:55:41.607Z
- **Modified:** 2026-08-05T11:57:06.134Z

## Who should check

- Anyone running Linux \>= 8deec94c6040bb4a767f6e9456a0a44c7f2e713e, \< 2fbf67ddb8a0d0efc00d2df496a9843ec318d48b; \>= 8deec94c6040bb4a767f6e9456a0a44c7f2e713e, \< 960dab23f6d405740c537d095f90a4ee9ddd9285; \>= 8deec94c6040bb4a767f6e9456a0a44c7f2e713e, \< 442312c2a90d60c7a5197246583fa91d9e579985; \>= 8deec94c6040bb4a767f6e9456a0a44c7f2e713e, \< e148266e104fce396ad624079a6812ac3a9982ef; \>= 8deec94c6040bb4a767f6e9456a0a44c7f2e713e, \< 9e51a6a44e2c4de780a26e8fe110d708e806a8cd; \>= 8deec94c6040bb4a767f6e9456a0a44c7f2e713e, \< c60d101a226f18e9a8f01bb4c6ca2b47dfcb15ef
- Anyone running Linux 5.13

## 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.

## Affected and fixed versions

- Linux: \>= 8deec94c6040bb4a767f6e9456a0a44c7f2e713e, \< 2fbf67ddb8a0d0efc00d2df496a9843ec318d48b; \>= 8deec94c6040bb4a767f6e9456a0a44c7f2e713e, \< 960dab23f6d405740c537d095f90a4ee9ddd9285; \>= 8deec94c6040bb4a767f6e9456a0a44c7f2e713e, \< 442312c2a90d60c7a5197246583fa91d9e579985; \>= 8deec94c6040bb4a767f6e9456a0a44c7f2e713e, \< e148266e104fce396ad624079a6812ac3a9982ef; \>= 8deec94c6040bb4a767f6e9456a0a44c7f2e713e, \< 9e51a6a44e2c4de780a26e8fe110d708e806a8cd; \>= 8deec94c6040bb4a767f6e9456a0a44c7f2e713e, \< c60d101a226f18e9a8f01bb4c6ca2b47dfcb15ef (cvelist)
- Linux: 5.13 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-23155. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-23155.md
Affected: Linux >= 8deec94c6040bb4a767f6e9456a0a44c7f2e713e, < 2fbf67ddb8a0d0efc00d2df496a9843ec318d48b; >= 8deec94c6040bb4a767f6e9456a0a44c7f2e713e, < 960dab23f6d405740c537d095f90a4ee9ddd9285; >= 8deec94c6040bb4a767f6e9456a0a44c7f2e713e, < 442312c2a90d60c7a5197246583fa91d9e579985; >= 8deec94c6040bb4a767f6e9…
Fixed in: Linux 2fbf67ddb8a0d0efc00d2df496a9843ec318d48b, Linux 960dab23f6d405740c537d095f90a4ee9ddd9285, Linux 442312c2a90d60c7a5197246583fa91d9e579985, Linux 9e51a6a44e2c4de780a26e8fe110d708e806a8cd

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-23155 being exploited?

There is no confirmed exploitation: CVE-2025-23155 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-23155?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-23155?

Linux \>= 8deec94c6040bb4a767f6e9456a0a44c7f2e713e, \< 2fbf67ddb8a0d0efc00d2df496a9843ec318d48b; \>= 8deec94c6040bb4a767f6e9456a0a44c7f2e713e, \< 960dab23f6d405740c537d095f90a4ee9ddd9285; \>= 8deec94c6040bb4a767f6e9456a0a44c7f2e713e, \< 442312c2a90d60c7a5197246583fa91d9e579985; \>= 8deec94c6040bb4a767f6e9456a0a44c7f2e713e, \< e148266e104fce396ad624079a6812ac3a9982ef; \>= 8deec94c6040bb4a767f6e9456a0a44c7f2e713e, \< 9e51a6a44e2c4de780a26e8fe110d708e806a8cd; \>= 8deec94c6040bb4a767f6e9456a0a44c7f2e713e, \< c60d101a226f18e9a8f01bb4c6ca2b47dfcb15ef; Linux 5.13.

### Is there a fix for CVE-2025-23155?

Yes. Fixed in Linux 2fbf67ddb8a0d0efc00d2df496a9843ec318d48b, Linux 960dab23f6d405740c537d095f90a4ee9ddd9285, Linux 442312c2a90d60c7a5197246583fa91d9e579985, Linux 9e51a6a44e2c4de780a26e8fe110d708e806a8cd. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-23155?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/2fbf67ddb8a0d0efc00d2df496a9843ec318d48b>
- patch: <https://git.kernel.org/stable/c/960dab23f6d405740c537d095f90a4ee9ddd9285>
- patch: <https://git.kernel.org/stable/c/442312c2a90d60c7a5197246583fa91d9e579985>
- patch: <https://git.kernel.org/stable/c/e148266e104fce396ad624079a6812ac3a9982ef>
- patch: <https://git.kernel.org/stable/c/9e51a6a44e2c4de780a26e8fe110d708e806a8cd>
- patch: <https://git.kernel.org/stable/c/c60d101a226f18e9a8f01bb4c6ca2b47dfcb15ef>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-23155>

HTML: <https://flawdb.com/CVE-2025-23155> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-23155>
