cve-2026-64057
HIGH CVSS 7.8 nvdIn the Linux kernel, the following vulnerability has been resolved: afs: Fix the locking used by afs_get_link() The afs filesystem in the kernel doesn't do locking correctly for symbolic links. There are a number of problems: (1) It doesn't do any locking around afs_read_single() to prevent races between multiple ->get_link() calls, thereby allowing the possibility of leaks. (2) It doesn't use RCU barriering when accessing the buffer pointers during RCU pathwalk. (3) It can race with another thread updating the contents of the symlink if a third party updated it on the server. Fix this by the following means: (0) Move symlink handling into its own file as this makes it more complicated. (1) Take the validate_lock around afs_read_single() to prevent races between multiple ->get_link() calls. (2) Keep a separate copy of the symlink contents with an rcu_head. This is always going to be a lot smaller than a page, so it can be kmalloc'd and save quite a bit of memory. It also needs a refcount for non-RCU pathwalk. (3) Split the symlink read and write-to-cache routines in afs from those for directories. (4) Discard the I/O buffer as soon as the write-to-cache completes as this is a full page (plus a folio_queue). (5) If there's no cache, discard the I/O buffer immediately after reading and copying if there is no cache.
- Published
- 2026-07-19
- Last Modified
- 2026-09-02
- Attack Vector
- LOCAL
- Attack Complexity
- LOW
- Privileges Required
- LOW
- linux linux_kernel
| Version | Base | Severity | Vector | Exploitability | Impact | Source |
|---|---|---|---|---|---|---|
| 3.1 | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
1.8 | 5.9 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
| CPE | Version range | Vulnerable |
|---|---|---|
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
>= 6.14, < 7.0.11 | yes |
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:* |
— | yes |
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:* |
— | yes |
cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:* |
— | yes |
cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:* |
— | yes |
- NVD status
- Analyzed
- Source identifier
416baaa9-dc9f-4396-8d5f-8c081fb06d67
No linked vulnerabilities found.
{
"cvss": 7.8,
"datePublished": "2026-07-19T16:17:46.187",
"dateUpdated": "2026-09-02T21:13:12.787",
"description": "In the Linux kernel, the following vulnerability has been resolved:\n\nafs: Fix the locking used by afs_get_link()\n\nThe afs filesystem in the kernel doesn't do locking correctly for symbolic\nlinks. There are a number of problems:\n\n (1) It doesn't do any locking around afs_read_single() to prevent races\n between multiple ->get_link() calls, thereby allowing the possibility\n of leaks.\n\n (2) It doesn't use RCU barriering when accessing the buffer pointers\n during RCU pathwalk.\n\n (3) It can race with another thread updating the contents of the symlink\n if a third party updated it on the server.\n\nFix this by the following means:\n\n (0) Move symlink handling into its own file as this makes it more\n complicated.\n\n (1) Take the validate_lock around afs_read_single() to prevent races\n between multiple ->get_link() calls.\n\n (2) Keep a separate copy of the symlink contents with an rcu_head. This\n is always going to be a lot smaller than a page, so it can be\n kmalloc'd and save quite a bit of memory. It also needs a refcount\n for non-RCU pathwalk.\n\n (3) Split the symlink read and write-to-cache routines in afs from those\n for directories.\n\n (4) Discard the I/O buffer as soon as the write-to-cache completes as this\n is a full page (plus a folio_queue).\n\n (5) If there's no cache, discard the I/O buffer immediately after reading\n and copying if there is no cache.",
"id": "CVE-2026-64057",
"raw": {
"affected": [
{
"affectedData": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"fs/afs/Makefile",
"fs/afs/dir.c",
"fs/afs/fsclient.c",
"fs/afs/inode.c",
"fs/afs/internal.h",
"fs/afs/symlink.c",
"fs/afs/validation.c",
"fs/afs/yfsclient.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "77ea917cbed62882a33114b1e23ededb977e4287",
"status": "affected",
"version": "eae9e78951bb02a7b94a9adef6e981413d13c564",
"versionType": "git"
},
{
"lessThan": "c0410adf3da6db46f3513411fcf95e63c2f1d1ad",
"status": "affected",
"version": "eae9e78951bb02a7b94a9adef6e981413d13c564",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"fs/afs/Makefile",
"fs/afs/dir.c",
"fs/afs/fsclient.c",
"fs/afs/inode.c",
"fs/afs/internal.h",
"fs/afs/symlink.c",
"fs/afs/validation.c",
"fs/afs/yfsclient.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "6.14"
},
{
"lessThan": "6.14",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "7.0.*",
"status": "unaffected",
"version": "7.0.11",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.1",
"versionType": "original_commit_for_fix"
}
]
}
],
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
],
"configurations": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"matchCriteriaId": "E6CE653C-C1AF-4668-9F08-8B0C4B4EC0BE",
"versionEndExcluding": "7.0.11",
"versionStartIncluding": "6.14",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*",
"matchCriteriaId": "B1EF7059-E670-45F4-B422-54C40FA86390",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*",
"matchCriteriaId": "0D38F0BF-A728-4133-A358-D44A2F7EE6D6",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*",
"matchCriteriaId": "EC732D08-5F7B-46D9-B154-E60C7F4F0A97",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*",
"matchCriteriaId": "E5910A9D-F60A-409A-B486-FE66BFEBA9B9",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nafs: Fix the locking used by afs_get_link()\n\nThe afs filesystem in the kernel doesn't do locking correctly for symbolic\nlinks. There are a number of problems:\n\n (1) It doesn't do any locking around afs_read_single() to prevent races\n between multiple ->get_link() calls, thereby allowing the possibility\n of leaks.\n\n (2) It doesn't use RCU barriering when accessing the buffer pointers\n during RCU pathwalk.\n\n (3) It can race with another thread updating the contents of the symlink\n if a third party updated it on the server.\n\nFix this by the following means:\n\n (0) Move symlink handling into its own file as this makes it more\n complicated.\n\n (1) Take the validate_lock around afs_read_single() to prevent races\n between multiple ->get_link() calls.\n\n (2) Keep a separate copy of the symlink contents with an rcu_head. This\n is always going to be a lot smaller than a page, so it can be\n kmalloc'd and save quite a bit of memory. It also needs a refcount\n for non-RCU pathwalk.\n\n (3) Split the symlink read and write-to-cache routines in afs from those\n for directories.\n\n (4) Discard the I/O buffer as soon as the write-to-cache completes as this\n is a full page (plus a folio_queue).\n\n (5) If there's no cache, discard the I/O buffer immediately after reading\n and copying if there is no cache."
}
],
"id": "CVE-2026-64057",
"lastModified": "2026-09-02T21:13:12.787",
"metrics": {
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "HIGH",
"baseScore": 7.8,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"exploitabilityScore": 1.8,
"impactScore": 5.9,
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"type": "Secondary"
}
]
},
"published": "2026-07-19T16:17:46.187",
"references": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
],
"url": "https://git.kernel.org/stable/c/77ea917cbed62882a33114b1e23ededb977e4287"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
],
"url": "https://git.kernel.org/stable/c/c0410adf3da6db46f3513411fcf95e63c2f1d1ad"
}
],
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"vulnStatus": "Analyzed",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "CWE-667"
}
],
"source": "nvd@nist.gov",
"type": "Primary"
}
]
},
"severity": "HIGH",
"source": "nvd",
"title": "In the Linux kernel, the following vulnerability has been resolved:\n\nafs: Fix the locking used by afs_get_link()\n\nThe..."
}