CVE-2022-49899
kernel: fscrypt: stop using keyrings subsystem for fscrypt_master_key
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · May 1, 2025
Updated · June 30, 2026
Description
A use-after-free vulnerability exists in the Linux kernel's fscrypt subsystem due to improper lifetime management of fscrypt_master_key structures when inline encryption is used. These keys were previously managed by the keyrings subsystem, which can arbitrarily delay their destruction, leading to potential use-after-free conditions after the underlying block crypto profile has already been freed. This can be triggered during filesystem unmount or inode eviction.
Statement
This flaw has already been remediated in recent versions, specifically Red Hat Enterprise Linux 9 and 10. Older versions where fscrypt is disabled are not impacted. Therefore, the risk is contained to specific, unpatched earlier versions where fscrypt is actively in use.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE not specified