{"id":"CVE-2026-98167","summary":"smb: client: fix server-\u003etotal_read for compound encrypted PDUs","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix server-\u003etotal_read for compound encrypted PDUs\n\nIn receive_encrypted_standard(), server-\u003etotal_read is left at the\nfull decrypted frame size when walking sub-PDUs of a compound encrypted\nframe. As a result, cifs_handle_standard() passes this full size\nto smb2_check_message(), causing the PDU length guards to incorrectly\nvalidate the entire compound frame instead of the current sub-PDU.\n\nThis allows truncated non-last sub-PDUs to bypass length validation,\nleading to out-of-bounds reads in smb2_get_data_area_len().\n\nFix this by setting server-\u003etotal_read to the true length of the\ncurrent sub-PDU: next_cmd for non-last sub-PDUs, and the remaining\npdu_length for the last one.","modified":"2026-10-07T02:47:29.336885368Z","published":"2026-10-06T08:44:12.731Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98167.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/282b72f9a7ef31296c48366db4128882999cc048"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8703539d22fdbc13dd2db090ee199c3a427b8ea0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a46eb242e9eef3a3897d166748b23303c516e870"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e78fc1d240b27349b45a0f1c3e3c2c401d7e230d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ebb8a075fdc7af3d196a4f158a0e18dbc394c0e3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f73726b83e4756fdaa099e1bc1143293bd57ad79"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98167.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98167"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b24df3e30cbf48255db866720fb71f14bf9d2f39"},{"fixed":"8703539d22fdbc13dd2db090ee199c3a427b8ea0"},{"fixed":"e78fc1d240b27349b45a0f1c3e3c2c401d7e230d"},{"fixed":"a46eb242e9eef3a3897d166748b23303c516e870"},{"fixed":"ebb8a075fdc7af3d196a4f158a0e18dbc394c0e3"},{"fixed":"282b72f9a7ef31296c48366db4128882999cc048"},{"fixed":"f73726b83e4756fdaa099e1bc1143293bd57ad79"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98167.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.19.0"},{"fixed":"6.1.189"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.158"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.112"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.54"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98167.json"}}],"schema_version":"1.9.0"}