CVE-2026-46139: smb: client: use kzalloc to zero-initialize security descriptor buffer

Published May 28, 2026
·
Updated

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

smb: client: use kzalloc to zero-initialize security descriptor buffer

Commit 62e7dd0a39c2d ("smb: common: change the data type of numaces to le16") split struct smbacl's le32 numaces field into le16 numaces and le16 reserved. The reserved field corresponds to Sbz2 in the MS-DTYP ACL wire format, which must be zero [1].

When building an ACL descriptor in buildsecdesc(), we are using a kmalloc()'ed descriptor buffer and writing the fields explicitly using le16() writes now. This never writes to the 2 byte reserved field, leaving it as uninitialized heap data.

When the reserved field happens to contain non-zero slab garbage, Samba rejects the security descriptor with "ndrpullsecuritydescriptor failed: Range Error", causing chmod to fail with EINVAL.

Change kmalloc() to kzalloc() to ensure the entire buffer is zero-initialized.

[1] https://learn.microsoft.com/en-us/openspecs/windowsprotocols/ms-dtyp/20233ed8-a6c6-4097-aafa-dd545ed24428

Affected Software

10 affected components
Linux Linux kernel
Linux Linux kernel>=6.12.23<6.12.88
Linux Linux kernel>=6.13.11<6.14
Linux Linux kernel>=6.14.1<6.18.30
Linux Linux kernel>=6.19<7.0.7
Linux Linux kernel=6.14
Linux Linux kernel=6.14-rc6
Linux Linux kernel=6.14-rc7
Linux Linux kernel=7.1-rc1
Linux Linux kernel=7.1-rc2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade smb: client to a version that resolves this vulnerability.

    Patch 62e7dd0a39c2d
  2. Upgrade

    Upgrade smb: common to a version that resolves this vulnerability.

    Patch 62e7dd0a39c2d

Event History

May 28, 2026
CVE Published
via MITRE·09:35 AM
Data Sourced
via MITRE·09:35 AM
Description
Data Sourced
via NVD·10:16 AM
RemedyDescriptionSeverityWeaknessAffected Software

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