Kernel Kit / Infix / v26.10.0latest
CVE-2026-99514
—unknownlinux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases
Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.
Reach linux · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
landlock: Fix superblock use-after-free in release_inode()
Without this fix, release_inode() (task 1) can race with a umount operation in hook_sb_delete() (task 2). The order of operations in which the race occurs is:
- –task 2:
hook_sb_delete()arrives at the end of the function, waiting forlandlock_superblock(sb)->inode_refsto become zero. - –task 1:
release_inode(): doesatomic_long_dec_and_test(), decrementinginode_refsto zero. - –task 2: gets woken up through some other means, sees that
inode_refsis zero and returns. The caller is the unmount operation and proceeds to release the superblock. - –task 1: Runs
wake_up_var(&landlock_superblock(sb)->inode_refs), *dereferencing thesb_securityon the freed-up superblock*.
Notably, wake_up_var() does not dereference the pointer passed to it, and only uses it to determine an overapproximated set of tasks to wake up. So while it's potentially possible for an attacker to provide a different value for that pointer, this only results in the wrong set of tasks getting woken up, and in this scenario, no further tasks are actually waiting.
Nevertheless, KASAN detects it as a slab-use-after-free read on sb->s_security:
BUG: KASAN: slab-use-after-free in release_inode+0x196/0x290kernel log · 12 lines
BUG: KASAN: slab-use-after-free in release_inode+0x196/0x290 Read of size 8 at addr ffff888103b6c0a8 by task repro/217 release_inode+0x196/0x290 landlock_put_object+0x71/0x90 landlock_free_rules+0x38/0xc0 landlock_put_ruleset+0x47/0x130 fop_ruleset_release+0x33/0x40 __fput+0x305/0x780 Freed by task 54: kfree+0x11c/0x390 process_scheduled_works+0x766/0xe50 worker_thread+0x7bc/0xb20
The fix is to determine &landlock_superblock(inode->i_sb)->inode_refs only once earlier in release_inode(), and later use that precalculated address for the wake_up_var() call, without having to dereference through the superblock.
Published 2026-11-19NVD
Build check · v26.10.0 aarch64_minimal
None of the source files the CNA lists for CVE-2026-99514 (security/landlock/fs.c) produced an object file in linux-6.18.60, so the affected code is not compiled into this kernel configuration.
Evidence 1
object file absent: not compiled
output/build/linux-6.18.60/security/landlock/fs.o
Members of Kernel Kit decide. Sign in if you are one.