CVE-2025-21796
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-21796 is a use-after-free vulnerability discovered in the Linux kernel's Network File System daemon (NFSD) component. The vulnerability was disclosed on February 26, 2025, and affects the ACL (Access Control List) handling functionality. The issue occurs when getting acldefault fails, causing both aclaccess and acldefault to be released simultaneously, while aclaccess retains a pointer to the released posix_acl (NVD).

Technical details

The vulnerability manifests in the NFSD component when handling ACL operations. If getting acldefault fails, both aclaccess and acldefault are released, but aclaccess maintains a pointer to the released posixacl. This triggers a WARNING in nfs3svcrelease_getacl, leading to a refcount underflow and use-after-free condition. The issue has been assigned a CVSS v3.1 base score of 7.8 (High) with the vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability can trigger a kernel panic when exploited, leading to a system crash. This occurs due to the use-after-free condition in the ACL handling code, which can cause the system to become unstable and potentially result in a denial of service condition (NVD).

Mitigation and workarounds

The vulnerability has been fixed in the Linux kernel through a patch that clears aclaccess/acldefault pointers after calling posixaclrelease. The fix involves adding NULL assignments to prevent the use-after-free condition from being triggered (Kernel Patch).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management