CVE-2026-143043

Not scored yetLast modified Dec 3, 2026

Description

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143044In the Linux kernel, the following vulnerability has been resolved: smb: client: fix OOB write when compounding SMB2_IOCTL with encryption CVE-2026-143045In the Linux kernel, the following vulnerability has been resolved: smb: client: don't block dying tasks waiting for writeback on fsync ciCVE-2026-143046In the Linux kernel, the following vulnerability has been resolved: smb: client: compare owner and group SIDs using their encoded lengths CVE-2026-143047In the Linux kernel, the following vulnerability has been resolved: smb: client: bound invalid NTLMSSP signature diagnostic The NTLMSSP SiCVE-2026-143048In the Linux kernel, the following vulnerability has been resolved: ovl: do not allow nfs_export with data-only layers Since data-only layCVE-2026-143049In the Linux kernel, the following vulnerability has been resolved: ovl: return EIO if the lowerdata is missing The data of a metacopy filCVE-2026-143055.3The WP Delicious WordPress plugin before 1.10.2 does not perform an authorization check on one of its AJAX actions, allowing unauthenticateCVE-2026-143050In the Linux kernel, the following vulnerability has been resolved: ovl: reject different lower idmaps on the same fs Overayfs mounted witCVE-2026-143051In the Linux kernel, the following vulnerability has been resolved: ovl: fix leak of lowerdata redirect on ovl_get_inode() failure ovl_looCVE-2026-143052In the Linux kernel, the following vulnerability has been resolved: ovl: do not read the flags of a put upper dentry in lookup ovl_lookup_CVE-2026-143053In the Linux kernel, the following vulnerability has been resolved: gpiolib: synchronize updates of descriptor labels desc_set_label() swaCVE-2026-143054In the Linux kernel, the following vulnerability has been resolved: gpio: virtuser: remove the debugfs files before freeing the line data
CVE-2026-143043: Unscored | Vulnix