GHSA-7J6H-WR9Q-2PX9
Vulnerability from github – Published: 2026-12-03 12:31 – Updated: 2026-12-03 12:31In 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.
{
"affected": [],
"aliases": [
"CVE-2026-143043"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-12-03T10:17:32Z",
"severity": null
},
"details": "In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix out-of-bounds read in dfs_parse_target_referral()\n\ndfs_parse_target_referral() decides whether a prefix path remains after\nthe consumed part of full_path with:\n\n\tif (strlen(full_path) - ref-\u003epath_consumed)\n\nstrlen() returns size_t, so if path_consumed is larger than the length\nof full_path, the subtraction wraps around to a huge non-zero value.\nThe branch is then taken, prepath is set to a pointer past the\nterminating NUL of full_path, and *prepath reads out of bounds.\n\npath_consumed can exceed strlen(full_path) when the mount charset is\nnot utf8. The referral code derives path_consumed from the canonical\npath, which is in the DFS cache charset (utf8), but it is applied here\nto full_path, which is in the mount charset. Each non-ASCII character\nin the consumed part of the path that is longer in utf8 than in the\nmount charset makes the count too large by the difference.\n\nThis was reproduced with iocharset=iso8859-1 against a Samba DFS root\ncontaining a link named \"caf\u00e9\", mounting with the single Latin-1 byte\n0xe9 in the path. On an unmodified tree such a mount fails earlier\nwith -ENOENT because the path is converted to utf8 twice in\nsetup_dfs_ref(); with that fixed (\"smb: client: fix double conversion\nof DFS path in setup_dfs_ref()\"), the mount reaches this code.\nfull_path was 29 bytes while path_consumed was 30:\n\n BUG: KASAN: slab-out-of-bounds in dfs_parse_target_referral+0x26a/0x270\n Read of size 1 at addr ffff88810db89d5f by task mount/1743\n ...\n The buggy address is located 0 bytes to the right of\n allocated 31-byte region [ffff88810db89d40, ffff88810db89d5f)\n\nCompare path_consumed against the string length instead of subtracting,\nso that no prefix path is used when the consumed count covers the whole\nstring. With the bounds check in place the same mount succeeds and no\nKASAN report is produced.\n\nThis only prevents the out-of-bounds access. path_consumed is still in\nthe wrong units, so a non-ASCII link followed by a path component can\nstill produce a wrong prefix path. That needs a separate fix.",
"id": "GHSA-7j6h-wr9q-2px9",
"modified": "2026-12-03T12:31:03Z",
"published": "2026-12-03T12:31:03Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143043"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/3d6613f19f9d4308a63d3a5563badb9462bc0171"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/86aacc2f3f6ba18e1d87feee24f37c94b3ce863a"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/b24002ce03cf090c5155f8597fc8dae982c33a64"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/e35ae3edae0f72bf2135c37d7eaee48106f7a008"
}
],
"schema_version": "1.4.0",
"severity": []
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.