{"id":"CVE-2026-99549","summary":"smb: client: do not pass a NULL buf to is_oplock_break()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: do not pass a NULL buf to is_oplock_break()\n\nreceive_encrypted_read() sets *num_mids = 1 and never writes the\ncaller's bufs[]. Offload returns -1 with *num_mids = 0, so the\ndemultiplex thread skips the frame. The inline decrypt path\nreturns 0 even when smb2_find_mid() fails.\n\ncifs_demultiplex_thread() then treats mids[i] == NULL as an\noplock break and calls is_oplock_break(bufs[i], server) with\nbufs[i] still NULL. smb2_is_valid_oplock_break() reads\nhdr.Command at offset 12 and oopses.\n\nA large encrypted READ whose MessageId does not match is enough\nto panic cifsd.\n\n    Oops: general protection fault, probably for non-canonical address\n    0xdffffc0000000001: 0000 [#1] SMP KASAN PTI\n    KASAN: null-ptr-deref in range\n    [0x0000000000000008-0x000000000000000f]\n    CPU: 0 PID: 100 Comm: cifsd\n    RIP: smb2_is_valid_oplock_break+0xc8/0x2270 [cifs]\n    cifs_demultiplex_thread\n    Kernel panic - not syncing: Fatal exception\n\nReturn -1 when inline decrypt finds no mid, and skip\nis_oplock_break() plus the unknown-frame dump when bufs[i]\nis NULL. receive_encrypted_standard() already assigns\nbufs[*num_mids].","modified":"2026-11-19T17:01:26.986441795Z","published":"2026-11-19T14:45:13.123Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99549.json","cna_assigner":"Linux"},"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/2225ab306575e424b3dad2ee1be2521c89249d15"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4bf4fb7f323402df1c57982365c8ac2498b89d10"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6c1ccd31b3a995a1a73e10e7bc8b6d96cf382241"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ee793cc8dcd58ed9afa0a69a84d66df4f8eacd88"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99549.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99549"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"c42a6abe3012832a68a371dabe17c2ced97e62ad"},{"fixed":"6c1ccd31b3a995a1a73e10e7bc8b6d96cf382241"},{"fixed":"ee793cc8dcd58ed9afa0a69a84d66df4f8eacd88"},{"fixed":"4bf4fb7f323402df1c57982365c8ac2498b89d10"},{"fixed":"2225ab306575e424b3dad2ee1be2521c89249d15"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99549.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.11.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.61"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99549.json"}}],"schema_version":"1.9.2"}