CVE-2026-139324 bpf: Don't leak the inode when token creation fails

Published Updated

CVSS score

Not scored

No CVSS score published yet
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
Available
See affected versions
Attack path
Not stated

What is CVE-2026-139324?

CVE-2026-139324 is a vulnerability in Linux, published on 30 Nov 2026.

Official description

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

bpf: Don't leak the inode when token creation fails

bpf_token_create() allocates a bpffs inode and hands it to alloc_file_pseudo(). The inode reference only moves to the new file when that call succeeds: alloc_file_pseudo() leaves the caller's reference alone on failure, and FD_PREPARE() does not even evaluate the file expression when it cannot get a descriptor.

Before the conversion to FD_PREPARE() the error path did iput(inode). The conversion dropped it, so each BPF_TOKEN_CREATE that fails with -EMFILE, -ENFILE or -ENOMEM at this point leaks an inode. A task that is allowed to create tokens can hit this at will by lowering RLIMIT_NOFILE, and the leaked inodes make umount of that bpffs instance complain about busy inodes.

Put the inode again if no file was created.

Which versions are affected by CVE-2026-139324?

How do I fix CVE-2026-139324?

Upgrade to a fixed version.

Is CVE-2026-139324 being exploited?

There is no known exploitation of CVE-2026-139324 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-139324, GHSA-g24c-8892-3gmp, UBUNTU-CVE-2026-139324.

Is CVE-2026-139324 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free