CVEBrief

Home / Linux / Linux / CVE-2026-31706

CVE-2026-31706: is it exploited, and which versions of Linux are affected and fixed?

CVE-2026-31706 is a vulnerability in Linux. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:09 UTC). Affected: Linux from 5.15 until the fixed versions (CVE record by Linux). Fixed in 6.1.191, 6.6.160, 6.12.84, 6.18.25 and 2 more (CVE record by Linux). Severity: High (8.8, CVSS 3.1, from Linux).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:09 UTC, CVE record November 28, 2026, 17:20 UTC and NVD November 19, 2026, 07:11 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 15:09 UTC
Affected
Linux from 5.15 until the fixed versions
CVE record by Linux
Fixed in
6.1.191, 6.6.160, 6.12.84, 6.18.25 and 2 more
CVE record by Linux
Severity
High 8.8
CVSS 3.1 from Linux
Exploit odds (EPSS)
0.50% in 30 days
higher than 45% of CVEs; FIRST, December 3, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

What is CVE-2026-31706?

In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate num_aces and harden ACE walk in smb_inherit_dacl() smb_inherit_dacl() trusts the on-disk num_aces value from the parent directory's DACL xattr and uses it to size a heap allocation: aces_base = kmalloc(sizeof(struct smb_ace) * num_aces * 2, ...); num_aces is a u16 read from le16_to_cpu(parent_pdacl->num_aces) without checking that it is consistent with the declared pdacl_size. An authenticated client whose parent directory's security.NTACL is tampered (e.g. via offline xattr corruption or a concurrent path that bypasses parse_dacl()) can present num_aces = 65535 with minimal actual ACE data. This causes a ~8 MB allocation (not kzalloc, so uninitialized) that the subsequent loop only partially populates, and may also overflow the three-way size_t multiply on 32-bit kernels. Additionally, the ACE walk loop uses the weaker offsetof(struct smb_ace, access_req) minimum size check rather than the minimum valid on-wire ACE size, and does not reject ACEs whose declared size is below the minimum. Reproduced on UML + KASAN + LOCKDEP against the real ksmbd code path. A legitimate mount.cifs client creates a parent directory over SMB (ksmbd writes a valid security.NTACL xattr), then the NTACL blob on the backing filesystem is rewritten to set num_aces = 0xFFFF while keeping the posix_acl_hash bytes intact so ksmbd_vfs_get_sd_xattr()'s hash check still passes. A subsequent SMB2 CREATE of a child under that parent drives smb2_open() into smb_inherit_dacl() (share has "vfs objects = acl_xattr" set), which fails the page allocator: WARNING: mm/page_alloc.c:5226 at __alloc_frozen_pages_noprof+0x46c/0x9c0 Workqueue: ksmbd-io handle_ksmbd_work __alloc_frozen_pages_noprof+0x46c/0x9c0 ___kmalloc_large_node+0x68/0x130 __kmalloc_large_node_noprof+0x24/0x70 __kmalloc_noprof+0x4c9/0x690 smb_inherit_dacl+0x394/0x2430 smb2_open+0x595d/0xabe0 handle_ksmbd_work+0x3d3/0x1140 With the patch applied the added guard rejects the tampered value with -EINVAL before any large allocation runs, smb2_open() falls back to smb2_create_sd_buffer(), and the child is created with a default SD. No warning, no splat. Fix by: 1. Validating num_aces against pdacl_size using the same formula applied in parse_dacl(). 2. Replacing the raw kmalloc(sizeof * num_aces * 2) with kmalloc_array(num_aces * 2, sizeof(...)) for overflow-safe allocation. 3. Tightening the per-ACE loop guard to require the minimum valid ACE size (offsetof(smb_ace, sid) + CIFS_SID_BASE_SIZE) and rejecting under-sized ACEs, matching the hardening in smb_check_perm_dacl() and parse_dacl(). v1 -> v2: - Replace the synthetic test-module splat in the changelog with a real-path UML + KASAN reproduction driven through mount.cifs and SMB2 CREATE; Namjae flagged the kcifs3_test_inherit_dacl_old name in v1 since it does not exist in ksmbd. - Drop the commit-hash citation from the code comment per Namjae's review; keep the parse_dacl() pointer.

From the CVE record by Linux, last updated October 30, 2026, 12:24 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
LinuxLinuxnot stated
LinuxLinuxfrom 5.15 until the fixed versions6.1.191, 6.6.160, 6.12.84, 6.18.25, 7.0.2, 7.1

As the CVE record by Linux states it, last updated October 30, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
linuxlinux kernelfrom 5.15 before 6.12.84operating system
linuxlinux kernelfrom 6.13 before 6.18.25operating system
linuxlinux kernelfrom 6.19 before 7.0.2operating system

NVD analysis (status Modified), last modified November 11, 2026, 21:10 UTC.

How severe is CVE-2026-31706?

ScoreVersionVectorSource
High 8.8CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2026-31706 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
EPSS
0.50% probability of exploitation activity in the next 30 days, percentile 44.6 (FIRST EPSS, scores of December 3, 2026)

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
March 9, 2026
Published
May 1, 2026, 13:56 UTC
CVE record updated
October 30, 2026, 12:24 UTC by Linux
NVD
Modified, last modified November 11, 2026, 21:10 UTC
Last checked
CVE list November 28, 2026, 17:20 UTC; NVD November 19, 2026, 07:11 UTC; KEV December 3, 2026, 15:09 UTC; EPSS December 3, 2026
Official record
cve.org · NVD

What other CVEs affect Linux?

Every CVE in Linux

Questions about CVE-2026-31706

Is CVE-2026-31706 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:09 UTC. FIRST's EPSS gives it a 0.50% chance of exploitation activity in the next 30 days (scores of December 3, 2026).

Which versions of Linux are affected by CVE-2026-31706?

Linux from 5.15 until the fixed versions, per the CVE record by Linux. The tables above give every range the sources list.

Which version fixes CVE-2026-31706?

6.1.191, 6.6.160, 6.12.84, 6.18.25, 7.0.2 and 7.1, per the CVE record by Linux. Check the vendor's advisory before you rely on it.

How severe is CVE-2026-31706?

High (8.8, CVSS 3.1, from Linux). The severity table above shows each score with its source.

Where is the official record of CVE-2026-31706?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.