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

Published Nov 30, 2026
·
Updated

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

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

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

Before the conversion to FDPREPARE() the error path did iput(inode). The conversion dropped it, so each BPFTOKENCREATE 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 RLIMITNOFILE, and the leaked inodes make umount of that bpffs instance complain about busy inodes.

Put the inode again if no file was created.

Affected Software

1 affected component
Linux Linux kernel

Event History

Nov 30, 2026
CVE Published
via MITRE·01:33 PM
Data Sourced
via MITRE·01:33 PM
Description
Data Sourced
via NVD·02:18 PM
Description

Frequently Asked Questions

1

Who can trigger the inode leak?

A task that is permitted to create BPF tokens can trigger it. The task can do so repeatedly by lowering its RLIMIT_NOFILE limit.

2

What failure conditions cause the leak?

The leak occurs when BPF_TOKEN_CREATE reaches token creation but alloc_file_pseudo() fails with -EMFILE, -ENFILE, or -ENOMEM. In these cases, no file is created and the allocated bpffs inode reference is not released.

3

What is the observable impact of repeated exploitation?

Each qualifying failed BPF_TOKEN_CREATE leaks a bpffs inode. Accumulated leaked inodes cause unmounting the affected bpffs instance to report busy inodes.

4

How is the issue fixed?

The fix releases the inode when no file was created, restoring cleanup on the failure path.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203