CVE-2025-37879

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

published May 9, 2025

CVSS
—
EPSS
1%
Percentile
53.3
In the wild
Unconfirmed
What it is

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)

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00718 · 53.3th percentile
Published
2025-05-09T06:45Z
EPSS history
Timeline
  • 09 MAY 06:45Z
    9p/net: fix improper handling of bogus negative read/write replies
    cvelistv5