# CVE-2025-38089: sunrpc: handle SVC\_GARBAGE during svc auth processing as auth error

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.01% (percentile 62, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-06-30T07:29:44.836Z
- **Modified:** 2026-10-15T22:18:26.343Z

## Who should check

- Anyone running Linux \>= 29cd2927fb914cc53b5ba4f67d2b74695c994ba4, \< 599c489eea793821232a2f69a00fa57d82b0ac98; \>= 29cd2927fb914cc53b5ba4f67d2b74695c994ba4, \< 353e75b55e583635bf71cde6abcec274dba05edd; \>= 29cd2927fb914cc53b5ba4f67d2b74695c994ba4, \< c90459cd58bb421d275337093d8e901e0ba748dd; \>= 29cd2927fb914cc53b5ba4f67d2b74695c994ba4, \< 94d10a4dba0bc482f2b01e39f06d5513d0f75742; 9b59f5c4911e87264507e0934cd2bb277390c560; \>= 6.3.4, \< 6.4
- Anyone running Linux 6.4

## 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.

## Affected and fixed versions

- Linux: \>= 29cd2927fb914cc53b5ba4f67d2b74695c994ba4, \< 599c489eea793821232a2f69a00fa57d82b0ac98; \>= 29cd2927fb914cc53b5ba4f67d2b74695c994ba4, \< 353e75b55e583635bf71cde6abcec274dba05edd; \>= 29cd2927fb914cc53b5ba4f67d2b74695c994ba4, \< c90459cd58bb421d275337093d8e901e0ba748dd; \>= 29cd2927fb914cc53b5ba4f67d2b74695c994ba4, \< 94d10a4dba0bc482f2b01e39f06d5513d0f75742; 9b59f5c4911e87264507e0934cd2bb277390c560; \>= 6.3.4, \< 6.4 (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- Upgrade Linux to 6.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38089. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38089.md
Affected: Linux >= 29cd2927fb914cc53b5ba4f67d2b74695c994ba4, < 599c489eea793821232a2f69a00fa57d82b0ac98; >= 29cd2927fb914cc53b5ba4f67d2b74695c994ba4, < 353e75b55e583635bf71cde6abcec274dba05edd; >= 29cd2927fb914cc53b5ba4f67d2b74695c994ba4, < c90459cd58bb421d275337093d8e901e0ba748dd; >= 29cd2927fb914cc53b5ba4f…
Fixed in: Linux 599c489eea793821232a2f69a00fa57d82b0ac98, Linux 353e75b55e583635bf71cde6abcec274dba05edd, Linux 94d10a4dba0bc482f2b01e39f06d5513d0f75742, Linux 6.4

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38089 being exploited?

There is no confirmed exploitation: CVE-2025-38089 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 1.01% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38089?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-38089?

Linux \>= 29cd2927fb914cc53b5ba4f67d2b74695c994ba4, \< 599c489eea793821232a2f69a00fa57d82b0ac98; \>= 29cd2927fb914cc53b5ba4f67d2b74695c994ba4, \< 353e75b55e583635bf71cde6abcec274dba05edd; \>= 29cd2927fb914cc53b5ba4f67d2b74695c994ba4, \< c90459cd58bb421d275337093d8e901e0ba748dd; \>= 29cd2927fb914cc53b5ba4f67d2b74695c994ba4, \< 94d10a4dba0bc482f2b01e39f06d5513d0f75742; 9b59f5c4911e87264507e0934cd2bb277390c560; \>= 6.3.4, \< 6.4; Linux 6.4.

### Is there a fix for CVE-2025-38089?

Yes. Fixed in Linux 599c489eea793821232a2f69a00fa57d82b0ac98, Linux 353e75b55e583635bf71cde6abcec274dba05edd, Linux 94d10a4dba0bc482f2b01e39f06d5513d0f75742, Linux 6.4. Upgrade Linux to 6.4 or later.

### How do I check if I'm affected by CVE-2025-38089?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- 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>
- exploit: <https://github.com/keymaker-arch/NFSundown>
- other: <https://www.openwall.com/lists/oss-security/2025/07/02/2>
- other: <http://www.openwall.com/lists/oss-security/2025/07/02/2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38089>

HTML: <https://flawdb.com/CVE-2025-38089> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38089>
