Description
In the Linux kernel, the following vulnerability has been resolved:

afs: Fix afs_edit_dir_remove() to get, not find, block 0

Fix afs_edit_dir_remove() to use afs_dir_get_block() to get block 0 rather
than afs_dir_find_block() as the latter caches the found block in the
afs_dir_iter and may[*] switch out the page it's on if another
afs_dir_find_block() is done. This parallels what afs_edit_dir_add() does.

[*] There's more than one block per page.
Published: 2026-08-10
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability lies in the AFS file system kernel code where the function afs_edit_dir_remove() used the wrong helper, afs_dir_find_block(), to obtain block 0. This function caches the found block and can switch out the page it occupies when another find operation occurs. As a result, operations on block 0 may act on an unexpected or stale page, leading to data corruption or integrity failures when removing directories. The bug is analogous to the add operation, which correctly uses afs_dir_get_block(). Apart from the risk of corrupted filesystem metadata, a compromised kernel could potentially expose sensitive data or increase the impact of other attacks.

Affected Systems

All Linux kernel builds that include the AFS module without the applied fix are affected. The specific versions impacted are not enumerated in the advisory, so any release prior to the patch that ships the faulty code may be vulnerable.

Risk and Exploitability

No EPSS score is available and the vulnerability is not listed in the CISA KEV catalog, indicating a lack of confirmed exploits. The CVSS score is not provided, but the nature of the flaw—potential data corruption within a privileged kernel module—suggests a high severity if exploited. The attack vector appears to require local access with the ability to trigger afs_edit_dir_remove(), likely through AFS operations or vulnerable applications that manipulate AFS directories. With the current absence of public exploits, the immediate risk level is moderate, but it should be treated with urgency in environments that rely on the AFS file system.

Generated by OpenCVE AI on August 10, 2026 at 13:53 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel release that incorporates the fix for afs_edit_dir_remove()
  • If an immediate kernel upgrade is not possible, disable or limit the use of the AFS module to reduce exposure
  • Review and, if necessary, patch or replace applications that interact heavily with the AFS file system to avoid triggering directory removal during concurrent operations
  • Enable kernel debugging and filesystem logging to detect anomalous block operations and react promptly

Generated by OpenCVE AI on August 10, 2026 at 13:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 10 Aug 2026 14:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-753

Mon, 10 Aug 2026 12:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: afs: Fix afs_edit_dir_remove() to get, not find, block 0 Fix afs_edit_dir_remove() to use afs_dir_get_block() to get block 0 rather than afs_dir_find_block() as the latter caches the found block in the afs_dir_iter and may[*] switch out the page it's on if another afs_dir_find_block() is done. This parallels what afs_edit_dir_add() does. [*] There's more than one block per page.
Title afs: Fix afs_edit_dir_remove() to get, not find, block 0
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-10T11:59:36.633Z

Reserved: 2026-07-30T09:28:09.372Z

Link: CVE-2026-68168

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-10T16:15:04Z

Weaknesses