Skip to content
CVE PROGRAM SOURCE RECORD9.8 Critical

CVE-2025-37879

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

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 products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 070b3656cf228eaaef7b28b59264c5c7cdbdd0fb to < 468ff4a7c61fb811c596a7c44b6a5455e40fd12baffected
  • 070b3656cf228eaaef7b28b59264c5c7cdbdd0fb to < a68768e280b7d0c967ea509e791bb9b90adc94a5affected
  • 070b3656cf228eaaef7b28b59264c5c7cdbdd0fb to < c548f95688e2b5ae0e2ae43d53cf717156c7d034affected
  • 070b3656cf228eaaef7b28b59264c5c7cdbdd0fb to < 374e4cd75617c8c2552f562f39dd989583f5c330affected
  • 070b3656cf228eaaef7b28b59264c5c7cdbdd0fb to < d0259a856afca31d699b706ed5e2adf11086c73baffected

Linux Linux

Default version status: affected

  • 4.1affected
  • 0 to < 4.1unaffected
  • 6.1.136 to ≤ 6.1.*unaffected
  • 6.6.89 to ≤ 6.6.*unaffected
  • 6.12.26 to ≤ 6.12.*unaffected
  • 6.14.5 to ≤ 6.14.*unaffected
  • 6.15 to ≤ *unaffected

References