CVE-2026-143044: smb: client: fix OOB write when compounding SMB2_IOCTL with encryption

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

smb: client: fix OOB write when compounding SMB2IOCTL with encryption

On an encrypted ("seal") mount, SMB2ioctlinit() keeps the IOCTL input in a separate iov (iov[1]); iov[0] is a 448-byte buffer from cifssmallbufget(). When such an IOCTL is not the last request of a compound, smb2setnextcommand() pads it for alignment by copying the whole request into iov[0]. A large enough input overflows that 448-byte buffer and corrupts the slab; the copy also sets rqnvec to 1, so the input buffer is leaked too.

An unprivileged user can trigger it by creating a symlink with a long target on such a mount: the native symlink is sent as FSCTLSETREPARSEPOINT + QUERYINFO + CLOSE in one compound, so the IOCTL is not the last request.

With slubdebug red zones on the cifssmallrq cache, the overflow is caught on the next allocation from that cache in the same compound (the 0x61 bytes are the 'a' characters of the symlink target):

BUG cifssmallrq (Not tainted): Object corrupt [Left Redzone overwritten] 0xffff8a59c7790500-0xffff8a59c779053f First byte 0x61 instead of 0xbb Call Trace: checkobject+0x1a8/0x350 allocdebugprocessing+0xab/0x110 slaballoc+0x7e/0x2f0 kmemcacheallocnoprof+0x28d/0x4b0 mempoolallocslab+0x16/0x30 cifssmallbufget+0x1a/0x30 [cifs] SMB2closeinit+0x8a/0x100 [cifs] smb2compoundop+0x2571/0x2b50 [cifs] smb2createreparseinode+0x27e/0x490 [cifs] mknodnfs+0x1ce/0x2e0 [cifs] createreparsesymlink+0x119/0x180 [cifs] cifssymlink+0x19f/0x8e0 [cifs] vfssymlink+0xa3/0x1b0 x64syssymlink+0x41/0x70

Pad the input to a multiple of 8 bytes when encryption is required. The request is then already aligned and smb2setnextcommand() no longer copies it; InputCount still carries the real length.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    When encryption is required, pad the SMB2_IOCTL input to a multiple of 8 bytes before compounding the request.

Event History

Dec 3, 2026
CVE Published
via MITRE·09:18 AM
Data Sourced
via MITRE·09:18 AM
Description

Frequently Asked Questions

1

Can a non-root local user trigger this issue?

Yes. An unprivileged user can trigger it by creating a symlink with a sufficiently long target on an encrypted SMB mount. The native symlink operation creates a compound request in which the relevant IOCTL is not the final request.

2

Which SMB client mounts are exposed?

The issue applies to encrypted ("seal") SMB mounts. The overflow occurs when a compounded SMB2 IOCTL with a large input must be padded because it is followed by another request in the compound.

3

How might an existing overflow be detected?

With slub_debug red zones enabled for the cifs_small_rq cache, corruption is detected on the next allocation from that cache in the same compound. The reported red-zone corruption may contain bytes from the symlink target.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203