{"id":"CVE-2026-99763","summary":"9p: don't decrement a server-owned zero nlink","details":"In the Linux kernel, the following vulnerability has been resolved:\n\n9p: don't decrement a server-owned zero nlink\n\nA 9P2000.L server can report nlink=0 for a regular file that still\nexists.  On a cache=loose or cache=fscache mount, lookup stores that\nvalue with set_nlink().  A later successful unlink calls\nv9fs_dec_count(), which still calls drop_nlink() for a non-directory.\ndrop_nlink() warns, and the unsigned link count wraps to 4294967295.\nfstat() on a descriptor opened before the unlink shows 0 before and\n4294967295 after.\n\nThe warning on the unpatched kernel, trimmed:\n\nWARNING: fs/inode.c:408 at drop_nlink+0xac/0xd0, CPU#1: trigger/188\nCPU: 1 UID: 0 PID: 188 Comm: trigger Tainted: G                 N  7.3.0-rc4-00537-ga3ff15db6820 #1 PREEMPT(lazy)\nRIP: 0010:drop_nlink+0xac/0xd0\nCall Trace:\n \u003cTASK\u003e\n v9fs_remove+0x529/0x750\n vfs_unlink+0x2f0/0xbd0\n filename_unlinkat+0x340/0x6c0\n __x64_sys_unlink+0x46/0x70\n do_syscall_64+0xe8/0x4f0\n entry_SYSCALL_64_after_hwframe+0x77/0x7f\n \u003c/TASK\u003e\n---[ end trace 0000000000000000 ]---\n\nDirectories whose cached nlink is at most 2 already skip this\ndecrement, because the exported filesystem may not maintain nlink\n(commit ac89b2ef9b559).  cache=none skips it as well (commit\n574aa0b479947).  cache=mmap does not take this path: it sets neither\nCACHE_META nor CACHE_LOOSE.  A regular file on cache=loose or\ncache=fscache still does.  Its count came from GETATTR and may\nalready be zero, so skip the decrement when i_nlink is already 0.\n\nVerified on 7.3-rc4-00537-ga3ff15db6820 with only this change.  A\nserver that advertises nlink=0 and accepts the unlink no longer\nwarns, and the open descriptor stays at nlink 0.  An honest server\non the same mount still goes from 1 to 0.  A rejected unlink leaves\nthe count unchanged.  cache=none is unchanged.  With panic_on_warn\nthe unpatched kernel panics on the warning; the patched kernel does\nnot.","modified":"2026-11-23T10:02:28.217758750Z","published":"2026-11-20T05:51:30.483Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99763.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/21eff52475070ccaf91677d9516d11df3c6ade91"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4e915aa8566173b44146bc46177c85afbe6bdf96"},{"type":"WEB","url":"https://git.kernel.org/stable/c/528cca4452d4aa3fef802e464867788a09803ce3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5980952fa41f822440f90df7e4628d4b61d22589"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8d247ae04b11459bc7d2ee295c2327e16a0e2893"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9ea87af4e675ae5c3781f2f362c062a13a93fe15"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ae24a3e84d9b226d944b3414d78877b8c7313b16"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f12fd1899eb570104cd2c0b649486470326dff99"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99763.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99763"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ac89b2ef9b55924bcf922251f043ba73a32d05bb"},{"fixed":"21eff52475070ccaf91677d9516d11df3c6ade91"},{"fixed":"f12fd1899eb570104cd2c0b649486470326dff99"},{"fixed":"ae24a3e84d9b226d944b3414d78877b8c7313b16"},{"fixed":"528cca4452d4aa3fef802e464867788a09803ce3"},{"fixed":"5980952fa41f822440f90df7e4628d4b61d22589"},{"fixed":"9ea87af4e675ae5c3781f2f362c062a13a93fe15"},{"fixed":"8d247ae04b11459bc7d2ee295c2327e16a0e2893"},{"fixed":"4e915aa8566173b44146bc46177c85afbe6bdf96"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99763.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.17.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.118"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.64"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99763.json"}}],"schema_version":"1.9.2"}