CVE-2026-68168

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

Published Aug 10, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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(). The vulnerability could lead to filesystem metadata corruption when block 0 is operated on incorrectly, potentially causing integrity failures during directory removal.

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

The EPSS score is <1%, implying a low likelihood of exploitation, and the vulnerability is not listed in the CISA KEV catalog, indicating no confirmed exploits. The CVSS score of 5.5 indicates a moderate severity. 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 lack of public exploits, the immediate risk level remains moderate, but it should be treated with urgency in environments that rely on the AFS file system.

Remediation

No solution or workaround provided in the CVE record.

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 13, 2026 at 10:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8887-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8889-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9003-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9043-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-753
Type Values Removed Values Added
Weaknesses CWE-367
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-753
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
Weaknesses
  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 17, 2026, 5:00 AM
Reserved
Jul 30, 2026, 9:28 AM
Status
Received
Published
Aug 10, 2026, 1:20 PM
Modified
Aug 17, 2026, 5:18 AM
Severity
Moderate
Public date
Aug 10, 2026, 12:00 AM