# CVE-2025-38089: sunrpc: handle SVC_GARBAGE during svc auth processing as auth error

- 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.58%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-06-30T07:29:44.836Z
- Modified: 2026-10-15T22:18:26.343Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Linux

## Description

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

sunrpc: handle SVC_GARBAGE during svc auth processing as auth error

tianshuo han reported a remotely-triggerable crash if the client sends a
kernel RPC server a specially crafted packet. If decoding the RPC reply
fails in such a way that SVC_GARBAGE is returned without setting the
rq_accept_statp pointer, then that pointer can be dereferenced and a
value stored there.

If it's the first time the thread has processed an RPC, then that
pointer will be set to NULL and the kernel will crash. In other cases,
it could create a memory scribble.

The server sunrpc code treats a SVC_GARBAGE return from svc_authenticate
or pg_authenticate as if it should send a GARBAGE_ARGS reply. RFC 5531
says that if authentication fails that the RPC should be rejected
instead with a status of AUTH_ERR.

Handle a SVC_GARBAGE return as an AUTH_ERROR, with a reason of
AUTH_BADCRED instead of returning GARBAGE_ARGS in that case. This
sidesteps the whole problem of touching the rpc_accept_statp pointer in
this situation and avoids the crash.

(As written by CVE List.)

## Affected

- Linux Linux: from 29cd2927fb914cc53b5ba4f67d2b74695c994ba4 before 599c489eea793821232a2f69a00fa57d82b0ac98; from 29cd2927fb914cc53b5ba4f67d2b74695c994ba4 before 353e75b55e583635bf71cde6abcec274dba05edd; from 29cd2927fb914cc53b5ba4f67d2b74695c994ba4 before c90459cd58bb421d275337093d8e901e0ba748dd; from 29cd2927fb914cc53b5ba4f67d2b74695c994ba4 before 94d10a4dba0bc482f2b01e39f06d5513d0f75742; 9b59f5c4911e87264507e0934cd2bb277390c560; from 6.3.4 before 6.4; 6.4 (not affected: before 6.4; from 6.6.95 up to 6.6.*; from 6.12.35 up to 6.12.*; from 6.15.4 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.3.4 before 6.4; from 6.4.1 before 6.6.95; from 6.7 before 6.12.35; from 6.13 before 6.15.4; 6.4; 6.16

## 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 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/keymaker-arch/NFSundown> (exploit, patch)
- <https://git.kernel.org/stable/c/599c489eea793821232a2f69a00fa57d82b0ac98> (patch)
- <https://git.kernel.org/stable/c/353e75b55e583635bf71cde6abcec274dba05edd> (patch)
- <https://git.kernel.org/stable/c/c90459cd58bb421d275337093d8e901e0ba748dd> (patch)
- <https://git.kernel.org/stable/c/94d10a4dba0bc482f2b01e39f06d5513d0f75742> (patch)
- <https://www.openwall.com/lists/oss-security/2025/07/02/2> (mailing-list)
- <http://www.openwall.com/lists/oss-security/2025/07/02/2> (mailing-list)

## Sources

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

---

Page: https://cve.day/CVE-2025-38089 · Whole record: https://cve.day/CVE-2025-38089.json · Rebuilt by cve.day 2026-11-25T22:59:00.388Z
