{"id":"CVE-2026-143044","state":"PUBLISHED","title":"smb: client: fix OOB write when compounding SMB2_IOCTL with encryption","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix OOB write when compounding SMB2_IOCTL with encryption\n\nOn an encrypted (\"seal\") mount, SMB2_ioctl_init() keeps the IOCTL input\nin a separate iov (iov[1]); iov[0] is a 448-byte buffer from\ncifs_small_buf_get().  When such an IOCTL is not the last request of a\ncompound, smb2_set_next_command() pads it for alignment by copying the\nwhole request into iov[0].  A large enough input overflows that 448-byte\nbuffer and corrupts the slab; the copy also sets rq_nvec to 1, so the\ninput buffer is leaked too.\n\nAn unprivileged user can trigger it by creating a symlink with a long\ntarget on such a mount: the native symlink is sent as\nFSCTL_SET_REPARSE_POINT + QUERY_INFO + CLOSE in one compound, so the\nIOCTL is not the last request.\n\nWith slub_debug red zones on the cifs_small_rq cache, the overflow is\ncaught on the next allocation from that cache in the same compound (the\n0x61 bytes are the 'a' characters of the symlink target):\n\n  BUG cifs_small_rq (Not tainted): Object corrupt\n  [Left Redzone overwritten] 0xffff8a59c7790500-0xffff8a59c779053f\n  First byte 0x61 instead of 0xbb\n  Call Trace:\n   check_object+0x1a8/0x350\n   alloc_debug_processing+0xab/0x110\n   ___slab_alloc+0x7e/0x2f0\n   kmem_cache_alloc_noprof+0x28d/0x4b0\n   mempool_alloc_slab+0x16/0x30\n   cifs_small_buf_get+0x1a/0x30 [cifs]\n   SMB2_close_init+0x8a/0x100 [cifs]\n   smb2_compound_op+0x2571/0x2b50 [cifs]\n   smb2_create_reparse_inode+0x27e/0x490 [cifs]\n   mknod_nfs+0x1ce/0x2e0 [cifs]\n   create_reparse_symlink+0x119/0x180 [cifs]\n   cifs_symlink+0x19f/0x8e0 [cifs]\n   vfs_symlink+0xa3/0x1b0\n   __x64_sys_symlink+0x41/0x70\n\nPad the input to a multiple of 8 bytes when encryption is required.  The\nrequest is then already aligned and smb2_set_next_command() no longer\ncopies it; InputCount still carries the real length.","publishedAt":"2026-12-03T09:18:20.474Z","updatedAt":"2026-12-03T09:18:20.474Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d7bb6ea9bf3751f2dc3f1b4681a861db5a69515b","status":"affected","lessThan":"f8ea73388c9d928ec105a8c6bdadf91eaa0cd4bb","versionType":"git"},{"version":"90f7c100d2dd99d5cd5be950d553edd2647e6cc8","status":"affected","lessThan":"59a1da069f151e921b667d4b273d273ab3d00638","versionType":"git"},{"version":"90f7c100d2dd99d5cd5be950d553edd2647e6cc8","status":"affected","lessThan":"40b21789cf79281bbb5ae008bd6e0a53c98ac99a","versionType":"git"},{"version":"90f7c100d2dd99d5cd5be950d553edd2647e6cc8","status":"affected","lessThan":"73a0060cb22a1d2bd8bff364c18a4259ec0cb528","versionType":"git"},{"version":"81492813c6e5cd030fdd4d5d7f5a445fd8679488","status":"affected","versionType":"git"},{"version":"6.12.114","status":"affected","lessThan":"6.12.120","versionType":"semver"},{"version":"6.16.8","status":"affected","lessThan":"6.17","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/smb2pdu.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/smb2pdu.c"]}],"references":["https://git.kernel.org/stable/c/f8ea73388c9d928ec105a8c6bdadf91eaa0cd4bb","https://git.kernel.org/stable/c/59a1da069f151e921b667d4b273d273ab3d00638","https://git.kernel.org/stable/c/40b21789cf79281bbb5ae008bd6e0a53c98ac99a","https://git.kernel.org/stable/c/73a0060cb22a1d2bd8bff364c18a4259ec0cb528"],"weaknesses":[],"ingestedAt":"2026-12-03T09:26:06.073Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143044.json","commit":"9fd484e43f2e14021809e195d28c1172759faad0","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143044","state":"PUBLISHED","datePublished":"2026-12-03T09:18:20.474Z","dateUpdated":"2026-12-03T09:18:20.474Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.345Z"},"containers":{"cna":{"title":"smb: client: fix OOB write when compounding SMB2_IOCTL with encryption","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix OOB write when compounding SMB2_IOCTL with encryption\n\nOn an encrypted (\"seal\") mount, SMB2_ioctl_init() keeps the IOCTL input\nin a separate iov (iov[1]); iov[0] is a 448-byte buffer from\ncifs_small_buf_get().  When such an IOCTL is not the last request of a\ncompound, smb2_set_next_command() pads it for alignment by copying the\nwhole request into iov[0].  A large enough input overflows that 448-byte\nbuffer and corrupts the slab; the copy also sets rq_nvec to 1, so the\ninput buffer is leaked too.\n\nAn unprivileged user can trigger it by creating a symlink with a long\ntarget on such a mount: the native symlink is sent as\nFSCTL_SET_REPARSE_POINT + QUERY_INFO + CLOSE in one compound, so the\nIOCTL is not the last request.\n\nWith slub_debug red zones on the cifs_small_rq cache, the overflow is\ncaught on the next allocation from that cache in the same compound (the\n0x61 bytes are the 'a' characters of the symlink target):\n\n  BUG cifs_small_rq (Not tainted): Object corrupt\n  [Left Redzone overwritten] 0xffff8a59c7790500-0xffff8a59c779053f\n  First byte 0x61 instead of 0xbb\n  Call Trace:\n   check_object+0x1a8/0x350\n   alloc_debug_processing+0xab/0x110\n   ___slab_alloc+0x7e/0x2f0\n   kmem_cache_alloc_noprof+0x28d/0x4b0\n   mempool_alloc_slab+0x16/0x30\n   cifs_small_buf_get+0x1a/0x30 [cifs]\n   SMB2_close_init+0x8a/0x100 [cifs]\n   smb2_compound_op+0x2571/0x2b50 [cifs]\n   smb2_create_reparse_inode+0x27e/0x490 [cifs]\n   mknod_nfs+0x1ce/0x2e0 [cifs]\n   create_reparse_symlink+0x119/0x180 [cifs]\n   cifs_symlink+0x19f/0x8e0 [cifs]\n   vfs_symlink+0xa3/0x1b0\n   __x64_sys_symlink+0x41/0x70\n\nPad the input to a multiple of 8 bytes when encryption is required.  The\nrequest is then already aligned and smb2_set_next_command() no longer\ncopies it; InputCount still carries the real length."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d7bb6ea9bf3751f2dc3f1b4681a861db5a69515b","status":"affected","lessThan":"f8ea73388c9d928ec105a8c6bdadf91eaa0cd4bb","versionType":"git"},{"version":"90f7c100d2dd99d5cd5be950d553edd2647e6cc8","status":"affected","lessThan":"59a1da069f151e921b667d4b273d273ab3d00638","versionType":"git"},{"version":"90f7c100d2dd99d5cd5be950d553edd2647e6cc8","status":"affected","lessThan":"40b21789cf79281bbb5ae008bd6e0a53c98ac99a","versionType":"git"},{"version":"90f7c100d2dd99d5cd5be950d553edd2647e6cc8","status":"affected","lessThan":"73a0060cb22a1d2bd8bff364c18a4259ec0cb528","versionType":"git"},{"version":"81492813c6e5cd030fdd4d5d7f5a445fd8679488","status":"affected","versionType":"git"},{"version":"6.12.114","status":"affected","lessThan":"6.12.120","versionType":"semver"},{"version":"6.16.8","status":"affected","lessThan":"6.17","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/smb2pdu.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/smb2pdu.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/f8ea73388c9d928ec105a8c6bdadf91eaa0cd4bb"},{"url":"https://git.kernel.org/stable/c/59a1da069f151e921b667d4b273d273ab3d00638"},{"url":"https://git.kernel.org/stable/c/40b21789cf79281bbb5ae008bd6e0a53c98ac99a"},{"url":"https://git.kernel.org/stable/c/73a0060cb22a1d2bd8bff364c18a4259ec0cb528"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:18:20.474Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12.114","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.4-rc3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16.8"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}