# CVE-2025-40305: 9p/trans\_fd: p9\_fd\_request: kick rx thread if EPOLLIN

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **Published:** 2025-12-08T00:46:30.327Z
- **Modified:** 2026-10-14T22:10:00.210Z

## Who should check

- Anyone running Linux \>= aaec5a95d59615523db03dd53c2052f0a87beea7, \< 242531004d7de8c159f9bfadebe33fe8060b1046; \>= aaec5a95d59615523db03dd53c2052f0a87beea7, \< e8fe3f07a357c39d429e02ca34f740692d88967a
- Anyone running Linux 6.14

## Description

In the Linux kernel, the following vulnerability has been resolved:

9p/trans\_fd: p9\_fd\_request: kick rx thread if EPOLLIN

p9\_read\_work() doesn't set Rworksched and doesn't do schedule\_work(m-\>rq)
if list\_empty(&m-\>req\_list).

However, if the pipe is full, we need to read more data and this used to
work prior to commit aaec5a95d59615 ("pipe\_read: don't wake up the writer
if the pipe is still full").

p9\_read\_work() does p9\_fd\_read() -\> ... -\> anon\_pipe\_read() which (before
the commit above) triggered the unnecessary wakeup. This wakeup calls
p9\_pollwake() which kicks p9\_poll\_workfn() -\> p9\_poll\_mux(), p9\_poll\_mux()
will notice EPOLLIN and schedule\_work(&m-\>rq).

This no longer happens after the optimization above, change p9\_fd\_request()
to use p9\_poll\_mux() instead of only checking for EPOLLOUT.

## Affected and fixed versions

- Linux: \>= aaec5a95d59615523db03dd53c2052f0a87beea7, \< 242531004d7de8c159f9bfadebe33fe8060b1046; \>= aaec5a95d59615523db03dd53c2052f0a87beea7, \< e8fe3f07a357c39d429e02ca34f740692d88967a (cvelist)
- Linux: 6.14 (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-40305. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40305.md
Affected: Linux >= aaec5a95d59615523db03dd53c2052f0a87beea7, < 242531004d7de8c159f9bfadebe33fe8060b1046; >= aaec5a95d59615523db03dd53c2052f0a87beea7, < e8fe3f07a357c39d429e02ca34f740692d88967a; Linux 6.14
Fixed in: Linux 242531004d7de8c159f9bfadebe33fe8060b1046

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-40305 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= aaec5a95d59615523db03dd53c2052f0a87beea7, \< 242531004d7de8c159f9bfadebe33fe8060b1046; \>= aaec5a95d59615523db03dd53c2052f0a87beea7, \< e8fe3f07a357c39d429e02ca34f740692d88967a; Linux 6.14.

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

Yes. Fixed in Linux 242531004d7de8c159f9bfadebe33fe8060b1046. No fix listed yet: follow the vendor advisory.

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

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

- other: <https://git.kernel.org/stable/c/242531004d7de8c159f9bfadebe33fe8060b1046>
- other: <https://git.kernel.org/stable/c/e8fe3f07a357c39d429e02ca34f740692d88967a>

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

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