# CVE-2025-37879: 9p/net: fix improper handling of bogus negative read/write replies

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.80%, higher than 53% of CVEs (2026-11-30)
- Published: 2025-05-09T06:45:43.197Z
- Modified: 2026-08-05T11:58:00.365Z
- Weaknesses: CWE-125
- Assigned by: Linux

## Description

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

9p/net: fix improper handling of bogus negative read/write replies

In p9_client_write() and p9_client_read_once(), if the server
incorrectly replies with success but a negative write/read count then we
would consider written (negative) <= rsize (positive) because both
variables were signed.

Make variables unsigned to avoid this problem.

The reproducer linked below now fails with the following error instead
of a null pointer deref:
9pnet: bogus RWRITE count (4294967295 > 3)

(As written by CVE List.)

## Affected

- Linux Linux: from 070b3656cf228eaaef7b28b59264c5c7cdbdd0fb before 468ff4a7c61fb811c596a7c44b6a5455e40fd12b; from 070b3656cf228eaaef7b28b59264c5c7cdbdd0fb before a68768e280b7d0c967ea509e791bb9b90adc94a5; from 070b3656cf228eaaef7b28b59264c5c7cdbdd0fb before c548f95688e2b5ae0e2ae43d53cf717156c7d034; from 070b3656cf228eaaef7b28b59264c5c7cdbdd0fb before 374e4cd75617c8c2552f562f39dd989583f5c330; from 070b3656cf228eaaef7b28b59264c5c7cdbdd0fb before d0259a856afca31d699b706ed5e2adf11086c73b; 4.1 (not affected: before 4.1; from 6.1.136 up to 6.1.*; from 6.6.89 up to 6.6.*; from 6.12.26 up to 6.12.*; from 6.14.5 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: before 6.1.136; from 6.2 before 6.6.89; from 6.7 before 6.12.26; from 6.13 before 6.14.5
- debian debian_linux: 11.0

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/468ff4a7c61fb811c596a7c44b6a5455e40fd12b> (patch)
- <https://git.kernel.org/stable/c/a68768e280b7d0c967ea509e791bb9b90adc94a5> (patch)
- <https://git.kernel.org/stable/c/c548f95688e2b5ae0e2ae43d53cf717156c7d034> (patch)
- <https://git.kernel.org/stable/c/374e4cd75617c8c2552f562f39dd989583f5c330> (patch)
- <https://git.kernel.org/stable/c/d0259a856afca31d699b706ed5e2adf11086c73b> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2025-37879](https://www.cve.org/CVERecord?id=CVE-2025-37879), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-37879](https://nvd.nist.gov/vuln/detail/CVE-2025-37879), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2025-37879 · Whole record: https://cve.day/CVE-2025-37879.json · Rebuilt by cve.day 2026-11-25T22:58:57.860Z
