CVE-2026-46139
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-tools-devel | Amazon Linux | 1:6.12.88-119.157.amzn2023 |
| kernel6.12-devel | Amazon Linux | 1:6.12.88-119.157.amzn2023 |
| bpftool6.12 | Amazon Linux | 1:6.12.88-119.157.amzn2023 |
| kernel6.18-headers | Amazon Linux | 1:6.18.30-61.116.amzn2023 |
| perf6.12 | Amazon Linux | 1:6.12.88-119.157.amzn2023 |
| kernel6.12-modules-extra-common | Amazon Linux | 1:6.12.88-119.157.amzn2023 |
| kernel6.18-modules-extra | Amazon Linux | 1:6.18.30-61.116.amzn2023 |
| kernel6.12-tools | Amazon Linux | 1:6.12.88-119.157.amzn2023 |
| kernel6.18 | Amazon Linux | 1:6.18.30-61.116.amzn2023 |
| kernel6.12-headers | Amazon Linux | 1:6.12.88-119.157.amzn2023 |
| linux_kernel | linux | 7.0.7, 6.18.30, 6.14, 6.12.88 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 1593ddb37bd124c131fe635397df68e854a03108, da087905e3270e2291c0afae39a28e7d183e5ec3, 62e7dd0a39c2d0d7ff03274c36df971f1b3d2d0d |
| Linux | Linux | 6.14, 0, 6.12.88 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| linux | linux_kernel | 6.12.23, 6.13.11, 6.14 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel-livepatch-6.12.88-119.157 | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| Linux | Linux | 7.1, 6.12.23, 6.13.11 |
| amazon:2023 | bpftool6.18 | 0 |
…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