VDB

CVE-2026-46139

CVE-2026-46139 PUBLISHED

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

Reported by linux · Published May 28, 2026

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 num_aces to le16") split struct smb_acl's __le32 num_aces field into __le16 num_aces 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 build_sec_desc(), 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 "ndr_pull_security_descriptor 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/windows_protocols/ms-dtyp/20233ed8-a6c6-4097-aafa-dd545ed24428

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.12-tools-develAmazon Linux1:6.12.88-119.157.amzn2023
kernel6.12-develAmazon Linux1:6.12.88-119.157.amzn2023
bpftool6.12Amazon Linux1:6.12.88-119.157.amzn2023
kernel6.18-headersAmazon Linux1:6.18.30-61.116.amzn2023
perf6.12Amazon Linux1:6.12.88-119.157.amzn2023
kernel6.12-modules-extra-commonAmazon Linux1:6.12.88-119.157.amzn2023
kernel6.18-modules-extraAmazon Linux1:6.18.30-61.116.amzn2023
kernel6.12-toolsAmazon Linux1:6.12.88-119.157.amzn2023
kernel6.18Amazon Linux1:6.18.30-61.116.amzn2023
kernel6.12-headersAmazon Linux1:6.12.88-119.157.amzn2023
linux_kernellinux7.0.7, 6.18.30, 6.14, 6.12.88

Affected products

VendorProductVersions
LinuxLinux1593ddb37bd124c131fe635397df68e854a03108, da087905e3270e2291c0afae39a28e7d183e5ec3, 62e7dd0a39c2d0d7ff03274c36df971f1b3d2d0d
LinuxLinux6.14, 0, 6.12.88
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.12-devel0
amazon:2023bpftool6.120
amazon:2023kernel6.18-headers0
amazon:2023perf6.120
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel6.12-tools0
amazon:2023kernel6.180
amazon:2023kernel6.12-headers0
linuxlinux_kernel6.12.23, 6.13.11, 6.14
amazon:2023perf6.180
amazon:2023kernel-livepatch-6.12.88-119.1570
amazon:2023kernel6.120
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel6.18-modules-extra-common0
LinuxLinux7.1, 6.12.23, 6.13.11
amazon:2023bpftool6.180

…and 6 more

Timeline

  • May 27, 2026 CVE Published
  • May 28, 2026 EPSS Score (14 in total, the first dated here)
  • Jun 1, 2026 Security Advisory (131 in total, the first dated here)
  • Jun 4, 2026 Coalition ESS Score
  • Aug 11, 2026 Distribution Patch (128 in total, the first dated here)
  • Nov 6, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-46139
vulnetix vdb fixes CVE-2026-46139

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-46139/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›