# CVE-2024-39463: 9p: add missing locking around taking dentry fid list

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-06-25T14:25:02.887Z
- **Modified:** 2026-08-05T11:33:24.281Z

## Who should check

- Anyone running Linux \>= 154372e67d4053e56591245eb413686621941333, \< 3bb6763a8319170c2d41c4232c8e7e4c37dcacfb; \>= 154372e67d4053e56591245eb413686621941333, \< cb299cdba09f46f090b843d78ba26b667d50a456; \>= 154372e67d4053e56591245eb413686621941333, \< f0c5c944c6d8614c19e6e9a97fd2011dcd30e8f5; \>= 154372e67d4053e56591245eb413686621941333, \< fe17ebf22feb4ad7094d597526d558a49aac92b4; \>= 154372e67d4053e56591245eb413686621941333, \< c898afdc15645efb555acb6d85b484eb40a45409
- Anyone running Linux 5.11

## Description

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

9p: add missing locking around taking dentry fid list

Fix a use-after-free on dentry's d\_fsdata fid list when a thread
looks up a fid through dentry while another thread unlinks it:

UAF thread:
refcount\_t: addition on 0; use-after-free.
 p9\_fid\_get linux/./include/net/9p/client.h:262
 v9fs\_fid\_find+0x236/0x280 linux/fs/9p/fid.c:129
 v9fs\_fid\_lookup\_with\_uid linux/fs/9p/fid.c:181
 v9fs\_fid\_lookup+0xbf/0xc20 linux/fs/9p/fid.c:314
 v9fs\_vfs\_getattr\_dotl+0xf9/0x360 linux/fs/9p/vfs\_inode\_dotl.c:400
 vfs\_statx+0xdd/0x4d0 linux/fs/stat.c:248

Freed by:
 p9\_fid\_destroy (inlined)
 p9\_client\_clunk+0xb0/0xe0 linux/net/9p/client.c:1456
 p9\_fid\_put linux/./include/net/9p/client.h:278
 v9fs\_dentry\_release+0xb5/0x140 linux/fs/9p/vfs\_dentry.c:55
 v9fs\_remove+0x38f/0x620 linux/fs/9p/vfs\_inode.c:518
 vfs\_unlink+0x29a/0x810 linux/fs/namei.c:4335

The problem is that d\_fsdata was not accessed under d\_lock, because
d\_release() normally is only called once the dentry is otherwise no
longer accessible but since we also call it explicitly in v9fs\_remove
that lock is required:
move the hlist out of the dentry under lock then unref its fids once
they are no longer accessible.

## Affected and fixed versions

- Linux: \>= 154372e67d4053e56591245eb413686621941333, \< 3bb6763a8319170c2d41c4232c8e7e4c37dcacfb; \>= 154372e67d4053e56591245eb413686621941333, \< cb299cdba09f46f090b843d78ba26b667d50a456; \>= 154372e67d4053e56591245eb413686621941333, \< f0c5c944c6d8614c19e6e9a97fd2011dcd30e8f5; \>= 154372e67d4053e56591245eb413686621941333, \< fe17ebf22feb4ad7094d597526d558a49aac92b4; \>= 154372e67d4053e56591245eb413686621941333, \< c898afdc15645efb555acb6d85b484eb40a45409 (cvelist)
- Linux: 5.11 (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-2024-39463. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-39463.md
Affected: Linux >= 154372e67d4053e56591245eb413686621941333, < 3bb6763a8319170c2d41c4232c8e7e4c37dcacfb; >= 154372e67d4053e56591245eb413686621941333, < cb299cdba09f46f090b843d78ba26b667d50a456; >= 154372e67d4053e56591245eb413686621941333, < f0c5c944c6d8614c19e6e9a97fd2011dcd30e8f5; >= 154372e67d4053e56591245…
Fixed in: Linux 3bb6763a8319170c2d41c4232c8e7e4c37dcacfb

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-2024-39463 being exploited?

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

### How serious is CVE-2024-39463?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-39463?

Linux \>= 154372e67d4053e56591245eb413686621941333, \< 3bb6763a8319170c2d41c4232c8e7e4c37dcacfb; \>= 154372e67d4053e56591245eb413686621941333, \< cb299cdba09f46f090b843d78ba26b667d50a456; \>= 154372e67d4053e56591245eb413686621941333, \< f0c5c944c6d8614c19e6e9a97fd2011dcd30e8f5; \>= 154372e67d4053e56591245eb413686621941333, \< fe17ebf22feb4ad7094d597526d558a49aac92b4; \>= 154372e67d4053e56591245eb413686621941333, \< c898afdc15645efb555acb6d85b484eb40a45409; Linux 5.11.

### Is there a fix for CVE-2024-39463?

Yes. Fixed in Linux 3bb6763a8319170c2d41c4232c8e7e4c37dcacfb. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-39463?

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/3bb6763a8319170c2d41c4232c8e7e4c37dcacfb>
- patch: <https://git.kernel.org/stable/c/cb299cdba09f46f090b843d78ba26b667d50a456>
- patch: <https://git.kernel.org/stable/c/f0c5c944c6d8614c19e6e9a97fd2011dcd30e8f5>
- patch: <https://git.kernel.org/stable/c/fe17ebf22feb4ad7094d597526d558a49aac92b4>
- patch: <https://git.kernel.org/stable/c/c898afdc15645efb555acb6d85b484eb40a45409>
- other: <https://www.zerodayinitiative.com/advisories/ZDI-24-1194/>

## 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-2024-39463>

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