{"id":"CVE-2026-98119","summary":"netfs: break unbuffered write when netfs_alloc_subrequest() fails","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfs: break unbuffered write when netfs_alloc_subrequest() fails\n\nsyzbot reported a null-ptr-deref below [1] following a fault injection in\nnetfs_alloc_subrequest(). [0]\n\nWhen netfs_alloc_subrequest() fails, subreq is NULL.\nLater, netfs_prepare_write() tries to initialize members of\nsubreq(e.g., source), the issue in [1] is triggered.\n\nLet's handle the error of netfs_prepare_write() properly.\n\n[0]\nFAULT_INJECTION: forcing a failure.\nname failslab, interval 1, probability 0, space 0, times 0\nCall Trace:\n netfs_alloc_subrequest+0x116/0x3f0\n netfs_prepare_write+0x76/0x7b0\n netfs_unbuffered_write+0x75c/0x2020\n netfs_unbuffered_write_iter_locked+0x7d6/0xa80\n netfs_unbuffered_write_iter+0x442/0x720\n v9fs_file_write_iter+0xbf/0x100\n vfs_write+0x6ac/0x1050\n\n[1]\nKASAN: null-ptr-deref in range [0x00000000000000a8-0x00000000000000af]\nRIP: 0010:netfs_prepare_write+0xbc/0x7b0 fs/netfs/write_issue.c:173\nCall Trace:\n netfs_unbuffered_write+0x75c/0x2020 fs/netfs/direct_write.c:111\n netfs_unbuffered_write_iter_locked+0x7d6/0xa80 fs/netfs/direct_write.c:290\n netfs_unbuffered_write_iter+0x442/0x720 fs/netfs/direct_write.c:382\n v9fs_file_write_iter+0xbf/0x100 fs/9p/vfs_file.c:409\n new_sync_write fs/read_write.c:595 [inline]","modified":"2026-09-27T03:47:31.968337738Z","published":"2026-09-25T10:36:03.524Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98119.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/19f246c795e940dc5f11cd5bc0cb1e81bc7b7090"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8fb45a934661419c04a44d4cfea1e0df7dcf2805"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cf6f93b8b06acf57de62dacbe71a3b99c68656a7"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98119.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98119"},{"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":"288ace2f57c9d06dd2e42bd80d03747d879a4068"},{"fixed":"cf6f93b8b06acf57de62dacbe71a3b99c68656a7"},{"fixed":"19f246c795e940dc5f11cd5bc0cb1e81bc7b7090"},{"fixed":"8fb45a934661419c04a44d4cfea1e0df7dcf2805"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98119.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.10.0"},{"fixed":"6.18.53"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98119.json"}}],"schema_version":"1.9.0"}