# CVE-2023-52803: SUNRPC: Fix RPC client cleaned up the freed pipefs dentries

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-05-21T15:31:15.063Z
- **Modified:** 2026-06-17T06:43:36.997Z

## Who should check

- Anyone running Linux \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< 17866066b8ac1cc38fb449670bc15dc9fee4b40a; \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< 7d61d1da2ed1f682c41cae0c8d4719cdaccee5c5; \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< dedf2a0eb9448ae73b270743e6ea9b108189df46; \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< 194454afa6aa9d6ed74f0c57127bc8beb27c20df; \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< 7749fd2dbef72a52b5c9ffdbf877691950ed4680; \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< 1cdb52ffd6600a37bd355d8dce58ecd03e55e618; \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< cc2e7ebbeb1d0601f7f3c8d93b78fcc03a95e44a; \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< bfca5fb4e97c46503ddfc582335917b0cc228264
- Anyone running Linux 3.4

## Description

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

SUNRPC: Fix RPC client cleaned up the freed pipefs dentries

RPC client pipefs dentries cleanup is in separated rpc\_remove\_pipedir()
workqueue,which takes care about pipefs superblock locking.
In some special scenarios, when kernel frees the pipefs sb of the
current client and immediately alloctes a new pipefs sb,
rpc\_remove\_pipedir function would misjudge the existence of pipefs
sb which is not the one it used to hold. As a result,
the rpc\_remove\_pipedir would clean the released freed pipefs dentries.

To fix this issue, rpc\_remove\_pipedir should check whether the
current pipefs sb is consistent with the original pipefs sb.

This error can be catched by KASAN:
=========================================================
\[  250.497700\] BUG: KASAN: slab-use-after-free in dget\_parent+0x195/0x200
\[  250.498315\] Read of size 4 at addr ffff88800a2ab804 by task kworker/0:18/106503
\[  250.500549\] Workqueue: events rpc\_free\_client\_work
\[  250.501001\] Call Trace:
\[  250.502880\]  kasan\_report+0xb6/0xf0
\[  250.503209\]  ? dget\_parent+0x195/0x200
\[  250.503561\]  dget\_parent+0x195/0x200
\[  250.503897\]  ? \_\_pfx\_rpc\_clntdir\_depopulate+0x10/0x10
\[  250.504384\]  rpc\_rmdir\_depopulate+0x1b/0x90
\[  250.504781\]  rpc\_remove\_client\_dir+0xf5/0x150
\[  250.505195\]  rpc\_free\_client\_work+0xe4/0x230
\[  250.505598\]  process\_one\_work+0x8ee/0x13b0
...
\[   22.039056\] Allocated by task 244:
\[   22.039390\]  kasan\_save\_stack+0x22/0x50
\[   22.039758\]  kasan\_set\_track+0x25/0x30
\[   22.040109\]  \_\_kasan\_slab\_alloc+0x59/0x70
\[   22.040487\]  kmem\_cache\_alloc\_lru+0xf0/0x240
\[   22.040889\]  \_\_d\_alloc+0x31/0x8e0
\[   22.041207\]  d\_alloc+0x44/0x1f0
\[   22.041514\]  \_\_rpc\_lookup\_create\_exclusive+0x11c/0x140
\[   22.041987\]  rpc\_mkdir\_populate.constprop.0+0x5f/0x110
\[   22.042459\]  rpc\_create\_client\_dir+0x34/0x150
\[   22.042874\]  rpc\_setup\_pipedir\_sb+0x102/0x1c0
\[   22.043284\]  rpc\_client\_register+0x136/0x4e0
\[   22.043689\]  rpc\_new\_client+0x911/0x1020
\[   22.044057\]  rpc\_create\_xprt+0xcb/0x370
\[   22.044417\]  rpc\_create+0x36b/0x6c0
...
\[   22.049524\] Freed by task 0:
\[   22.049803\]  kasan\_save\_stack+0x22/0x50
\[   22.050165\]  kasan\_set\_track+0x25/0x30
\[   22.050520\]  kasan\_save\_free\_info+0x2b/0x50
\[   22.050921\]  \_\_kasan\_slab\_free+0x10e/0x1a0
\[   22.051306\]  kmem\_cache\_free+0xa5/0x390
\[   22.051667\]  rcu\_core+0x62c/0x1930
\[   22.051995\]  \_\_do\_softirq+0x165/0x52a
\[   22.052347\]
\[   22.052503\] Last potentially related work creation:
\[   22.052952\]  kasan\_save\_stack+0x22/0x50
\[   22.053313\]  \_\_kasan\_record\_aux\_stack+0x8e/0xa0
\[   22.053739\]  \_\_call\_rcu\_common.constprop.0+0x6b/0x8b0
\[   22.054209\]  dentry\_free+0xb2/0x140
\[   22.054540\]  \_\_dentry\_kill+0x3be/0x540
\[   22.054900\]  shrink\_dentry\_list+0x199/0x510
\[   22.055293\]  shrink\_dcache\_parent+0x190/0x240
\[   22.055703\]  do\_one\_tree+0x11/0x40
\[   22.056028\]  shrink\_dcache\_for\_umount+0x61/0x140
\[   22.056461\]  generic\_shutdown\_super+0x70/0x590
\[   22.056879\]  kill\_anon\_super+0x3a/0x60
\[   22.057234\]  rpc\_kill\_sb+0x121/0x200

## Affected and fixed versions

- Linux: \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< 17866066b8ac1cc38fb449670bc15dc9fee4b40a; \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< 7d61d1da2ed1f682c41cae0c8d4719cdaccee5c5; \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< dedf2a0eb9448ae73b270743e6ea9b108189df46; \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< 194454afa6aa9d6ed74f0c57127bc8beb27c20df; \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< 7749fd2dbef72a52b5c9ffdbf877691950ed4680; \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< 1cdb52ffd6600a37bd355d8dce58ecd03e55e618; \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< cc2e7ebbeb1d0601f7f3c8d93b78fcc03a95e44a; \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< bfca5fb4e97c46503ddfc582335917b0cc228264 (cvelist)
- Linux: 3.4 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-52803.md
Affected: Linux >= 0157d021d23a087eecfa830502f81cfe843f0d16, < 17866066b8ac1cc38fb449670bc15dc9fee4b40a; >= 0157d021d23a087eecfa830502f81cfe843f0d16, < 7d61d1da2ed1f682c41cae0c8d4719cdaccee5c5; >= 0157d021d23a087eecfa830502f81cfe843f0d16, < dedf2a0eb9448ae73b270743e6ea9b108189df46; >= 0157d021d23a087eecfa830…
Fixed in: Linux 17866066b8ac1cc38fb449670bc15dc9fee4b40a, Linux 7d61d1da2ed1f682c41cae0c8d4719cdaccee5c5, Linux 194454afa6aa9d6ed74f0c57127bc8beb27c20df, Linux 7749fd2dbef72a52b5c9ffdbf877691950ed4680, Linux 1cdb52ffd6600a37bd355d8dce58ecd03e55e618

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-52803 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< 17866066b8ac1cc38fb449670bc15dc9fee4b40a; \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< 7d61d1da2ed1f682c41cae0c8d4719cdaccee5c5; \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< dedf2a0eb9448ae73b270743e6ea9b108189df46; \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< 194454afa6aa9d6ed74f0c57127bc8beb27c20df; \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< 7749fd2dbef72a52b5c9ffdbf877691950ed4680; \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< 1cdb52ffd6600a37bd355d8dce58ecd03e55e618; \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< cc2e7ebbeb1d0601f7f3c8d93b78fcc03a95e44a; \>= 0157d021d23a087eecfa830502f81cfe843f0d16, \< bfca5fb4e97c46503ddfc582335917b0cc228264; Linux 3.4.

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

Yes. Fixed in Linux 17866066b8ac1cc38fb449670bc15dc9fee4b40a, Linux 7d61d1da2ed1f682c41cae0c8d4719cdaccee5c5, Linux 194454afa6aa9d6ed74f0c57127bc8beb27c20df, Linux 7749fd2dbef72a52b5c9ffdbf877691950ed4680, Linux 1cdb52ffd6600a37bd355d8dce58ecd03e55e618. No fix listed yet: follow the vendor advisory.

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

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/17866066b8ac1cc38fb449670bc15dc9fee4b40a>
- patch: <https://git.kernel.org/stable/c/7d61d1da2ed1f682c41cae0c8d4719cdaccee5c5>
- patch: <https://git.kernel.org/stable/c/dedf2a0eb9448ae73b270743e6ea9b108189df46>
- patch: <https://git.kernel.org/stable/c/194454afa6aa9d6ed74f0c57127bc8beb27c20df>
- patch: <https://git.kernel.org/stable/c/7749fd2dbef72a52b5c9ffdbf877691950ed4680>
- patch: <https://git.kernel.org/stable/c/1cdb52ffd6600a37bd355d8dce58ecd03e55e618>
- patch: <https://git.kernel.org/stable/c/cc2e7ebbeb1d0601f7f3c8d93b78fcc03a95e44a>
- patch: <https://git.kernel.org/stable/c/bfca5fb4e97c46503ddfc582335917b0cc228264>

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

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