# CVE-2023-54269: SUNRPC: double free xprt\_ctxt while still in use

> 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:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.83% (percentile 55, 2026-11-26)
- **Published:** 2025-12-30T12:16:00.317Z
- **Modified:** 2026-10-15T22:17:57.140Z

## Who should check

- Anyone running Linux \>= f5e13d700a4d40ccde3d36e383f9247dcb3c1d2d, \< 7851771789e87108a92697194105ef0c9307dc5e; \>= 773f91b2cf3f52df0d7508fdbf60f37567cdaee4, \< fd86534872f445f54dc01e7db001e25eadf063a8; \>= 773f91b2cf3f52df0d7508fdbf60f37567cdaee4, \< e0c648627322a4c7e018e5c7f837c3c03e297dbb; \>= 773f91b2cf3f52df0d7508fdbf60f37567cdaee4, \< eb8d3a2c809abd73ab0a060fe971d6b9019aa3c1; 11fab500f86403b2ebf6795feeade6e10302e448; \>= 5.15.35, \< 5.15.113; \>= 5.17.4, \< 5.18
- Anyone running Linux 5.18

## Description

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

SUNRPC: double free xprt\_ctxt while still in use

When an RPC request is deferred, the rq\_xprt\_ctxt pointer is moved out
of the svc\_rqst into the svc\_deferred\_req.
When the deferred request is revisited, the pointer is copied into
the new svc\_rqst - and also remains in the svc\_deferred\_req.

In the (rare?) case that the request is deferred a second time, the old
svc\_deferred\_req is reused - it still has all the correct content.
However in that case the rq\_xprt\_ctxt pointer is NOT cleared so that
when xpo\_release\_xprt is called, the ctxt is freed (UDP) or possible
added to a free list (RDMA).
When the deferred request is revisited for a second time, it will
reference this ctxt which may be invalid, and the free the object a
second time which is likely to oops.

So change svc\_defer() to \*always\* clear rq\_xprt\_ctxt, and assert that
the value is now stored in the svc\_deferred\_req.

## Affected and fixed versions

- Linux: \>= f5e13d700a4d40ccde3d36e383f9247dcb3c1d2d, \< 7851771789e87108a92697194105ef0c9307dc5e; \>= 773f91b2cf3f52df0d7508fdbf60f37567cdaee4, \< fd86534872f445f54dc01e7db001e25eadf063a8; \>= 773f91b2cf3f52df0d7508fdbf60f37567cdaee4, \< e0c648627322a4c7e018e5c7f837c3c03e297dbb; \>= 773f91b2cf3f52df0d7508fdbf60f37567cdaee4, \< eb8d3a2c809abd73ab0a060fe971d6b9019aa3c1; 11fab500f86403b2ebf6795feeade6e10302e448; \>= 5.15.35, \< 5.15.113; \>= 5.17.4, \< 5.18 (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- Upgrade Linux to 5.18 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-54269.md
Affected: Linux >= f5e13d700a4d40ccde3d36e383f9247dcb3c1d2d, < 7851771789e87108a92697194105ef0c9307dc5e; >= 773f91b2cf3f52df0d7508fdbf60f37567cdaee4, < fd86534872f445f54dc01e7db001e25eadf063a8; >= 773f91b2cf3f52df0d7508fdbf60f37567cdaee4, < e0c648627322a4c7e018e5c7f837c3c03e297dbb; >= 773f91b2cf3f52df0d7508f…
Fixed in: Linux 7851771789e87108a92697194105ef0c9307dc5e, Linux 5.15.113, Linux 5.18

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-2023-54269 being exploited?

There is no confirmed exploitation: CVE-2023-54269 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.83% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-54269?

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

### Which versions are affected by CVE-2023-54269?

Linux \>= f5e13d700a4d40ccde3d36e383f9247dcb3c1d2d, \< 7851771789e87108a92697194105ef0c9307dc5e; \>= 773f91b2cf3f52df0d7508fdbf60f37567cdaee4, \< fd86534872f445f54dc01e7db001e25eadf063a8; \>= 773f91b2cf3f52df0d7508fdbf60f37567cdaee4, \< e0c648627322a4c7e018e5c7f837c3c03e297dbb; \>= 773f91b2cf3f52df0d7508fdbf60f37567cdaee4, \< eb8d3a2c809abd73ab0a060fe971d6b9019aa3c1; 11fab500f86403b2ebf6795feeade6e10302e448; \>= 5.15.35, \< 5.15.113; \>= 5.17.4, \< 5.18; Linux 5.18.

### Is there a fix for CVE-2023-54269?

Yes. Fixed in Linux 7851771789e87108a92697194105ef0c9307dc5e, Linux 5.15.113, Linux 5.18. Upgrade Linux to 5.18 or later.

### How do I check if I'm affected by CVE-2023-54269?

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

- other: <https://git.kernel.org/stable/c/7851771789e87108a92697194105ef0c9307dc5e>
- other: <https://git.kernel.org/stable/c/fd86534872f445f54dc01e7db001e25eadf063a8>
- other: <https://git.kernel.org/stable/c/e0c648627322a4c7e018e5c7f837c3c03e297dbb>
- other: <https://git.kernel.org/stable/c/eb8d3a2c809abd73ab0a060fe971d6b9019aa3c1>

## 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-2023-54269>

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