Read the docs

Out-of-bounds read in Linux kernel SMB client DFS referral parsing

Priority LOW 23Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Partial Red Hat: 5 without a fix

No CVSS vector from any source. Fix status from CNA and Red Hat.

Summary

The Linux kernel SMB client is affected in versions before 6.12.120, before 6.18.66 and before 7.3.7. In dfs_parse_target_referral(), a length check subtracts unsigned values, so a consumed path count larger than the string wraps around and the kernel reads past the end of the buffer. A user who mounts a DFS share with a non-UTF-8 charset and a non-ASCII link name can trigger this out-of-bounds read.

Written with Claude Haiku 5.5 from the sources below · 2026-12-03

Description from the CNA

In the Linux kernel, the following vulnerability has been resolved: smb: client: fix out-of-bounds read in dfs_parse_target_referral() dfs_parse_target_referral() decides whether a prefix path remains after the consumed part of full_path with: if (strlen(full_path) - ref->path_consumed) strlen() returns size_t, so if path_consumed is larger than the length of full_path, the subtraction wraps around to a huge non-zero value. The branch is then taken, prepath is set to a pointer past the terminating NUL of full_path, and *prepath reads out of bounds. path_consumed can exceed strlen(full_path) when the mount charset is not utf8. The referral code derives path_consumed from the canonical path, which is in the DFS cache charset (utf8), but it is applied here to full_path, which is in the mount charset. Each non-ASCII character in the consumed part of the path that is longer in utf8 than in the mount charset makes the count too large by the difference. This was reproduced with iocharset=iso8859-1 against a Samba DFS root containing a link named "café", mounting with the single Latin-1 byte 0xe9 in the path. On an unmodified tree such a mount fails earlier with -ENOENT because the path is converted to utf8 twice in setup_dfs_ref(); with that fixed ("smb: client: fix double conversion of DFS path in setup_dfs_ref()"), the mount reaches this code. full_path was 29 bytes while path_consumed was 30: BUG: KASAN: slab-out-of-bounds in dfs_parse_target_referral+0x26a/0x270 Read of size 1 at addr ffff88810db89d5f by task mount/1743 ... The buggy address is located 0 bytes to the right of allocated 31-byte region [ffff88810db89d40, ffff88810db89d5f) Compare path_consumed against the string length instead of subtracting, so that no prefix path is used when the consumed count covers the whole string. With the bounds check in place the same mount succeeds and no KASAN report is produced. This only prevents the out-of-bounds access. path_consumed is still in the wrong units, so a non-ASCII link followed by a path component can still produce a wrong prefix path. That needs a separate fix.

Why it matters now

EPSS 0.00365 32nd percentileScored 2026-12-04
Fix Partial Linux (Linux): 6.12.120, 6.18.66, 7.3.7 +1Red Hat: 5 without a fix

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
LinuxLinuxbefore 6.12.120; before 6.18.66; before 7.3.76.12.120, 6.18.66, 7.3.7Patch availableCNA
LinuxLinux—6.12.120, 6.18.66, 7.3.7, 7.4-rc3Patch availableCNA
  • Linux VendorLinux Affected before 6.12.120; before 6.18.66; before 7.3.7 Fixed in 6.12.120, 6.18.66, 7.3.7 Patch available CNA
  • Linux VendorLinux Affected — Fixed in 6.12.120, 6.18.66, 7.3.7, 7.4-rc3 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*——Linux
  • cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions — — ·Linux

Remediation

Update the Linux kernel to 6.12.120, 6.18.66 or 7.3.7, or to 7.4-rc3, which list the fix. Red Hat Enterprise Linux 8, 9 and 10 and Red Hat OpenShift Container Platform 4 and 5 are listed as affected without a fix, and Red Hat lists no fix available for them.

Written with Claude Haiku 5.5 from the sources below · 2026-12-03

  • Fix · CNA Linux (Linux) Fixed in 6.12.120, 6.18.66, 7.3.7
  • Fix · CNA Linux (Linux) Fixed in 6.12.120, 6.18.66, 7.3.7, 7.4-rc3

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 10AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 8AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 9AffectedNo fix yet: Fix deferred
Red Hat OpenShift Container Platform 4AffectedNo fix yet: Fix deferred
Red Hat OpenShift Container Platform 5AffectedNo fix yet: Fix deferred
Not affected: 2 products
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7

Timeline

  1. 2026-12-03 Threatist record created from CVE-2026-143043
  2. 2026-12-03 Alias added: GHSA-7j6h-wr9q-2px9
  3. 2026-12-03 Affected versions changed · Red Hat
  4. 2026-12-03 CVSS score added · Red Hat

References

  • TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
  • TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
  • TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
  • TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
  • TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
  • TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
See all 24154 →

Sources