{"id":"CVE-2026-98167","aliases":["CVE-2026-98167"],"related":[],"kind":"vulnerability","state":"published","title":"smb: client: fix server->total_read for compound encrypted PDUs","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix server->total_read for compound encrypted PDUs\n\nIn receive_encrypted_standard(), server->total_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->total_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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix server->total_read for compound encrypted PDUs\n\nIn receive_encrypted_standard(), server->total_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->total_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.","source":"cvelist"}],"published":"2026-10-06T08:44:12.731Z","modified":"2026-10-19T10:18:16.950Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b24df3e30cbf48255db866720fb71f14bf9d2f39","fixed":"8703539d22fdbc13dd2db090ee199c3a427b8ea0","status":"affected"},{"type":"git","introduced":"b24df3e30cbf48255db866720fb71f14bf9d2f39","fixed":"e78fc1d240b27349b45a0f1c3e3c2c401d7e230d","status":"affected"},{"type":"git","introduced":"b24df3e30cbf48255db866720fb71f14bf9d2f39","fixed":"a46eb242e9eef3a3897d166748b23303c516e870","status":"affected"},{"type":"git","introduced":"b24df3e30cbf48255db866720fb71f14bf9d2f39","fixed":"ebb8a075fdc7af3d196a4f158a0e18dbc394c0e3","status":"affected"},{"type":"git","introduced":"b24df3e30cbf48255db866720fb71f14bf9d2f39","fixed":"282b72f9a7ef31296c48366db4128882999cc048","status":"affected"},{"type":"git","introduced":"b24df3e30cbf48255db866720fb71f14bf9d2f39","fixed":"f73726b83e4756fdaa099e1bc1143293bd57ad79","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.19","status":"unaffected"},{"type":"semver","introduced":"6.1.189","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.54","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.8","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/8703539d22fdbc13dd2db090ee199c3a427b8ea0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e78fc1d240b27349b45a0f1c3e3c2c401d7e230d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a46eb242e9eef3a3897d166748b23303c516e870","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ebb8a075fdc7af3d196a4f158a0e18dbc394c0e3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/282b72f9a7ef31296c48366db4128882999cc048","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f73726b83e4756fdaa099e1bc1143293bd57ad79","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98167","url":"https://www.cve.org/CVERecord?id=CVE-2026-98167","licence":"CVE Terms of Use","modified":"2026-10-19T09:14:58.765Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98167","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98167","licence":"Public domain","modified":"2026-10-19T10:18:16.950Z"}],"updatedAt":"2026-11-25T22:59:42.274Z","epss":{"score":0.00222,"percentile":0.13632,"date":"2026-12-01T12:00:22.000Z"}}