CWE data temporarily unavailableCWE data is currently experiencing intermittent outages, which may cause incomplete section loading on CVE pages. We are actively working on a fix.

CVE-2026-68148

Description

A flaw was found in the Linux kernel's fscrypt component. A missing superblock check in the find_or_insert_direct_key() function could allow inodes from different filesystems to incorrectly share encryption keys. This can lead to a use-after-free vulnerability, potentially allowing an attacker to cause a denial of service, disclose sensitive information, or execute arbitrary code.

Statement

A moderate use-after-free vulnerability in the Linux kernel's fscrypt (filesystem encryption) subsystem affects Red Hat Enterprise Linux 9, Red Hat Enterprise Linux 10, and Red Hat In-Vehicle OS. The legacy global fscrypt_direct_keys table caches master keys used by v1 encryption policies that specify FSCRYPT_POLICY_FLAG_DIRECT_KEY. When find_or_insert_direct_key() looked up the direct key for an inode, it did not compare the super_block pointer, so inodes from different filesystems could reference the same fscrypt_direct_key structure. This could extend the lifetime of that structure beyond the lifetime of the superblock it points to, causing a use-after-free when the key is later destroyed. A local attacker able to use fscrypt with v1 direct-key policies on multiple filesystems could potentially exploit this flaw to cause a denial of service, disclose sensitive information, or execute arbitrary code; however, the specific conditions required make exploitation difficult, and Red Hat has assessed the attack complexity as high. Only filesystems that use legacy v1 encryption policies with the direct-key flag are exposed to this flaw; v2 encryption policies are not affected because their per-mode keys are maintained in per-superblock data structures. Red Hat Enterprise Linux 6, 7, and 8 are not affected because the vulnerable code is not present in their kernels. A fix for the affected products is being pursued by the Red Hat kernel team. Red Hat rates this flaw as Moderate severity, while the upstream CVE record assigns a CVSS 3.1 base score of 7.8 (Important); this difference reflects the high attack complexity and the limited set of configurations that use v1 direct-key encryption policies.

Mitigation

Systems can reduce exposure to this issue by avoiding legacy v1 fscrypt encryption policies that set the FSCRYPT_POLICY_FLAG_DIRECT_KEY flag: v2 encryption policies are not affected because their per-mode key structures are maintained per superblock. For existing deployments where switching to v2 encryption policies is not practical, mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score7N/A7.8
Attack VectorLocalN/ALocal
Attack ComplexityHighN/ALow
Privileges RequiredLowN/ALow
User InteractionNoneN/ANone
ScopeUnchangedN/AUnchanged
ConfidentialityHighN/AHigh
Integrity ImpactHighN/AHigh
Availability ImpactHighN/AHigh

Vector

Red Hat: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

cve.org: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

Want to get errata notifications? Sign up here.