CVE-2026-68148
Received Received - Intake

Use-After-Free in Linux Kernel fscrypt

Vulnerability report for CVE-2026-68148, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-10

Last updated on: 2026-08-10

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: fscrypt: Add missing superblock check in find_or_insert_direct_key() The legacy 'fscrypt_direct_keys' table caches master keys that are used by v1 encryption policies that have FSCRYPT_POLICY_FLAG_DIRECT_KEY. It's just a global table for all filesystems (since the keys can be provided by the legacy process-subscribed keyrings mechanism, which makes it difficult to reuse super_block::s_master_keys). The entries in it ('struct fscrypt_direct_key') do contain a super_block pointer, though, for passing to fscrypt_destroy_inline_crypt_key() when the last inode that references the key is evicted. However, when finding the fscrypt_direct_key for an inode, we weren't actually comparing the super_block pointer. As a result, inodes with different super_blocks could point to the same fscrypt_direct_key. That could extend the lifetime of a fscrypt_direct_key beyond the super_block it points to, causing a use-after-free later. Fix this by creating distinct fscrypt_direct_key structs for distinct super_block structs. Note that this problem doesn't exist in the v2 policy equivalent ("per-mode keys"), since the data structures there are per super_block.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-10
Last Modified
2026-08-10
Generated
2026-08-10
AI Q&A
2026-08-10
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in the Linux kernel involves a missing superblock check in the fscrypt module. It affects the legacy 'fscrypt_direct_keys' table, which caches master keys for v1 encryption policies. The issue allows inodes from different superblocks to share the same key entry, potentially causing a use-after-free when the key outlives the superblock it points to.

Detection Guidance

This vulnerability is specific to the Linux kernel's fscrypt module and requires kernel-level inspection. Detection involves checking kernel logs for related errors or verifying the presence of the vulnerable code path. Commands like 'dmesg | grep fscrypt' or examining kernel source for the affected function may help. No direct network detection commands are applicable.

Impact Analysis

This flaw could lead to memory corruption or system crashes by causing a use-after-free condition. Attackers might exploit it to escalate privileges or execute arbitrary code, depending on the system configuration and kernel version.

Mitigation Strategies

Apply the latest kernel security patches from your Linux distribution to resolve this issue. If patches are unavailable, consider disabling fscrypt or using v2 encryption policies as a workaround. Monitor kernel logs for signs of exploitation or crashes.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-68148. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart