CVE-2025-37879
JSON

9.8critical

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

Severity
9.8critical CVSS:3.1 by Linux
Exploit likelihood
0.80% (higher than 53% of CVEs)
Published
Last changed
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)

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelbefore 6.1.136, from 6.2 before 6.6.89, from 6.7 before 6.12.26, from 6.13 before 6.14.5NVD
debian debian_linux11.0NVD

All scores

Linux9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Classification

What each source says

CVE List

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)

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: 9p/net: se corrige el manejo incorrecto de respuestas de lectura/escritura negativas falsas. En p9_client_write() y p9_client_read_once(), si el servidor responde incorrectamente con éxito, pero con un recuento de escrituras/lecturas negativo, se consideraría que "escrito" (negativo) &lt;= "rsize" (positivo) porque ambas variables estaban firmadas. Para evitar este problema, desactive el signo de las variables. El reproductor enlazado a continuación ahora falla con el siguiente error en lugar de una referencia de puntero nulo: 9pnet: recuento de RWRITE falso (4294967295 &gt; 3)

References

Sources

SourceRecordLicence
CVE ListCVE-2025-37879 changed 2026-08-05CVE Terms of Use
NVDCVE-2025-37879 changed 2026-07-30Public domain