{"id":"CVE-2026-23220","summary":"ksmbd: fix infinite loop caused by next_smb2_rcv_hdr_off reset in error paths","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix infinite loop caused by next_smb2_rcv_hdr_off reset in error paths\n\nThe problem occurs when a signed request fails smb2 signature verification\ncheck. In __process_request(), if check_sign_req() returns an error,\nset_smb2_rsp_status(work, STATUS_ACCESS_DENIED) is called.\nset_smb2_rsp_status() set work-\u003enext_smb2_rcv_hdr_off as zero. By resetting\nnext_smb2_rcv_hdr_off to zero, the pointer to the next command in the chain\nis lost. Consequently, is_chained_smb2_message() continues to point to\nthe same request header instead of advancing. If the header's NextCommand\nfield is non-zero, the function returns true, causing __handle_ksmbd_work()\nto repeatedly process the same failed request in an infinite loop.\nThis results in the kernel log being flooded with \"bad smb2 signature\"\nmessages and high CPU usage.\n\nThis patch fixes the issue by changing the return value from\nSERVER_HANDLER_CONTINUE to SERVER_HANDLER_ABORT. This ensures that\nthe processing loop terminates immediately rather than attempting to\ncontinue from an invalidated offset.","modified":"2026-04-02T13:12:15.147570Z","published":"2026-02-18T14:53:23.376Z","related":["openSUSE-SU-2026:10387-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23220.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/010eb01ce23b34b50531448b0da391c7f05a72af"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5accdc5b7f28a81bbc5880ac0b8886e60c86e8c8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/71b5e7c528315ca360a1825a4ad2f8ae48c5dc16"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9135e791ec2709bcf0cda0335535c74762489498"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f7b1c2f5642bbd60b1beef1f3298cbac81eb232c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fb3b66bd72deb5543addaefa67963b34fb163a7b"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23220.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23220"},{"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":"943cebf9ea3415ddefcd670d24d8883e97ba3d60"},{"fixed":"fb3b66bd72deb5543addaefa67963b34fb163a7b"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"be0f89d4419dc5413a1cf06db3671c9949be0d52"},{"fixed":"5accdc5b7f28a81bbc5880ac0b8886e60c86e8c8"},{"fixed":"f7b1c2f5642bbd60b1beef1f3298cbac81eb232c"},{"fixed":"71b5e7c528315ca360a1825a4ad2f8ae48c5dc16"},{"fixed":"9135e791ec2709bcf0cda0335535c74762489498"},{"fixed":"010eb01ce23b34b50531448b0da391c7f05a72af"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"4b9b7ea1ffb1e34f01fa5726d0c184931b9ba565"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23220.json"}}],"schema_version":"1.7.5"}