{"id":"CVE-2026-139324","aliases":["CVE-2026-139324"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Don't leak the inode when token creation fails","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't leak the inode when token creation fails\n\nbpf_token_create() allocates a bpffs inode and hands it to\nalloc_file_pseudo().  The inode reference only moves to the new file when\nthat call succeeds: alloc_file_pseudo() leaves the caller's reference alone\non failure, and FD_PREPARE() does not even evaluate the file expression\nwhen it cannot get a descriptor.\n\nBefore the conversion to FD_PREPARE() the error path did iput(inode).  The\nconversion dropped it, so each BPF_TOKEN_CREATE that fails with -EMFILE,\n-ENFILE or -ENOMEM at this point leaks an inode.  A task that is allowed to\ncreate tokens can hit this at will by lowering RLIMIT_NOFILE, and the\nleaked inodes make umount of that bpffs instance complain about busy\ninodes.\n\nPut the inode again if no file was created.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't leak the inode when token creation fails\n\nbpf_token_create() allocates a bpffs inode and hands it to\nalloc_file_pseudo().  The inode reference only moves to the new file when\nthat call succeeds: alloc_file_pseudo() leaves the caller's reference alone\non failure, and FD_PREPARE() does not even evaluate the file expression\nwhen it cannot get a descriptor.\n\nBefore the conversion to FD_PREPARE() the error path did iput(inode).  The\nconversion dropped it, so each BPF_TOKEN_CREATE that fails with -EMFILE,\n-ENFILE or -ENOMEM at this point leaks an inode.  A task that is allowed to\ncreate tokens can hit this at will by lowering RLIMIT_NOFILE, and the\nleaked inodes make umount of that bpffs instance complain about busy\ninodes.\n\nPut the inode again if no file was created.","source":"cvelist"}],"published":"2026-11-30T13:33:42.631Z","modified":"2026-11-30T14:18:56.923Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"981bec8f698ba19a4d983016c6ccdde30502d07e","fixed":"bcd2e35432a433b98d5ef9817b51657dd8ef1963","status":"affected"},{"type":"git","introduced":"981bec8f698ba19a4d983016c6ccdde30502d07e","fixed":"f52b699c88634d0161c97247e0f791a840eb868d","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.19","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/bcd2e35432a433b98d5ef9817b51657dd8ef1963","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f52b699c88634d0161c97247e0f791a840eb868d","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139324","url":"https://www.cve.org/CVERecord?id=CVE-2026-139324","licence":"CVE Terms of Use","modified":"2026-11-30T13:33:42.631Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139324","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139324","licence":"Public domain","modified":"2026-11-30T14:18:56.923Z"}],"updatedAt":"2026-11-30T14:33:00.129Z","epss":{"score":0.00198,"percentile":0.09977,"date":"2026-12-01T12:00:22.000Z"}}