CVE-2026-99292

smb: client: fix slab-out-of-bounds write in id_mode_to_cifs_acl()

Published Nov 16, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

smb: client: fix slab-out-of-bounds write in id_mode_to_cifs_acl()

In id_mode_to_cifs_acl(), while the chown branch reserves
sizeof(struct smb_ntsd) + 2 * sizeof(struct smb_sid) (plus
sizeof(struct smb_acl) and the worst-case ACE space after
commit 0ee150794c75 ("smb: client: fix heap overflow in DACL owner/group
rewrite")), the chmod branch only adds 2 * sizeof(struct smb_ace) or
5 * sizeof(struct smb_ace) to secdesclen (or 1 * sizeof(struct smb_ace)
on posix).

However, the chmod branch also invokes build_sec_desc() ->
copy_sec_desc(), which unconditionally writes the Owner SID at
pnntsd + sidsoffset and the Group SID at
pnntsd + sidsoffset + sizeof(struct smb_sid) (2 * 68 = 136 bytes total),
and set_chmod_dacl() always writes a struct smb_acl header (8 bytes)
even when the source descriptor has dacloffset == 0. When a security
descriptor has compact or overlapping Owner/Group SIDs (or
dacloffset == 0), calling chmod() under-allocates pnntsd and writes past
the end of the slab buffer.

Reserve sizeof(struct smb_acl) + 2 * sizeof(struct smb_sid) (plus
sizeof(struct smb_ntsd) on the posix path) in the chmod branch of
id_mode_to_cifs_acl().

Analysis

AI-generated

Technical impact

In Linux kernel SMB client code, the function id_mode_to_cifs_acl() incorrectly calculates the memory required for security descriptors when handling a chmod request. The bug causes a slab out‑of‑bounds write that can corrupt kernel memory and potentially allow an attacker to tamper with privileged data or crash the system. The flaw is effectively a heap‑based buffer overflow.

Affected Systems

All Linux kernel releases that contain the SMB client driver before the remediation commit. The fix is included in later kernel versions; the specific affected kernel releases are not enumerated in the advisory.

Risk and Exploitability

The advisory does not provide a CVSS score or EPSS rate, and the vulnerability is not currently included in CISA’s KEV catalog. Exploitation would most likely occur by issuing a chmod operation on a file with a specially crafted security descriptor over an SMB connection, which may be achievable by a remote or local attacker who can access SMB shares. The lack of publicly available exploits and the need for a specific SMB operation suggest a moderate risk, but the potential for arbitrary kernel memory writes poses a high severity if an exploit is developed.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the commit referenced in the advisory (e.g., the commit from https://git.kernel.org/stable/c/a377a3645c7d0246af0bc4ef24db94bb2670bdde).
  • If an immediate kernel upgrade is not possible, disable SMB client ACL handling by configuring the system to use older SMB protocol versions or by setting filesystem mount options that ignore ACL changes.
  • As a temporary measure, restrict SMB share access and prevent chmod operations on files that might have compact or overlapping security descriptors until the kernel is updated.

Generated by OpenCVE AI on November 16, 2026 at 11:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-122
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: smb: client: fix slab-out-of-bounds write in id_mode_to_cifs_acl() In id_mode_to_cifs_acl(), while the chown branch reserves sizeof(struct smb_ntsd) + 2 * sizeof(struct smb_sid) (plus sizeof(struct smb_acl) and the worst-case ACE space after commit 0ee150794c75 ("smb: client: fix heap overflow in DACL owner/group rewrite")), the chmod branch only adds 2 * sizeof(struct smb_ace) or 5 * sizeof(struct smb_ace) to secdesclen (or 1 * sizeof(struct smb_ace) on posix). However, the chmod branch also invokes build_sec_desc() -> copy_sec_desc(), which unconditionally writes the Owner SID at pnntsd + sidsoffset and the Group SID at pnntsd + sidsoffset + sizeof(struct smb_sid) (2 * 68 = 136 bytes total), and set_chmod_dacl() always writes a struct smb_acl header (8 bytes) even when the source descriptor has dacloffset == 0. When a security descriptor has compact or overlapping Owner/Group SIDs (or dacloffset == 0), calling chmod() under-allocates pnntsd and writes past the end of the slab buffer. Reserve sizeof(struct smb_acl) + 2 * sizeof(struct smb_sid) (plus sizeof(struct smb_ntsd) on the posix path) in the chmod branch of id_mode_to_cifs_acl().
Title smb: client: fix slab-out-of-bounds write in id_mode_to_cifs_acl()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-122

    Heap-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 16, 2026, 9:59 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 16, 2026, 10:17 AM
Modified
Nov 16, 2026, 10:17 AM