AZL-116863: CVE-2026-139087 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
minix: reject rmdir of a directory with a corrupted link count
minixrmdir() calls minixunlink(), which drops the victim's link count once, and then drops it a second time for the "." entry. An image where an empty directory has inlink < 2 makes the second drop hit dropnlink() with inlink == 0:
WARNING: fs/inode.c:408 at dropnlink minixrmdir+0xe9/0x150 vfsrmdir filenamermdir dosysunlinkat
The parent's link count is already validated; do the same for the directory being removed and fail with -EFSCORRUPTED.
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to this condition?
Systems are exposed when they operate on a Minix filesystem image containing an empty directory whose link count is corrupted to less than 2, and an rmdir operation is performed on that directory.
What must occur to trigger the issue?
The affected directory must be removed through minix_rmdir(). The first link-count drop occurs through minix_unlink(), and the subsequent drop for the directory's "." entry reaches drop_nlink() with a zero link count.
How can I tell whether this has been encountered?
A kernel warning at fs/inode.c:408 in drop_nlink may appear, with a stack trace including minix_rmdir, vfs_rmdir, filename_rmdir, and __do_sys_unlinkat.
What can be done before an update is available?
Avoid removing empty directories with corrupted link counts on Minix filesystem images. Treat such images as corrupted and avoid performing the triggering rmdir operation.