CVE-2025-22120: ext4: goto right label 'out_mmap_sem' in ext4_setattr()
In the Linux kernel, the following vulnerability has been resolved:
ext4: goto right label 'out_mmap_sem' in ext4_setattr()
Otherwise, if ext4_inode_attach_jinode() fails, a hung task will
happen because filemap_invalidate_unlock() isn't called to unlock
mapping->invalidate_lock. Like this:
EXT4-fs error (device sda) in ext4_setattr:5557: Out of memory
INFO: task fsstress:374 blocked for more than 122 seconds.
Not tainted 6.14.0-rc1-next-20250206-xfstests-dirty #726
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:fsstress state:D stack:0 pid:374 tgid:374 ppid:373
task_flags:0x440140 flags:0x00000000
Call Trace:
<TASK>
__schedule+0x2c9/0x7f0
schedule+0x27/0xa0
schedule_preempt_disabled+0x15/0x30
rwsem_down_read_slowpath+0x278/0x4c0
down_read+0x59/0xb0
page_cache_ra_unbounded+0x65/0x1b0
filemap_get_pages+0x124/0x3e0
filemap_read+0x114/0x3d0
vfs_read+0x297/0x360
ksys_read+0x6c/0xe0
do_syscall_64+0x4b/0x110
entry_SYSCALL_64_after_hwframe+0x76/0x7e
Security readout for executives and security teams
Plain-English summary
CVE-2025-22120 is a Linux kernel ext4 bug that can leave a filesystem lock unreleased after an error path. The observed impact is a hung task, which can disrupt workloads using ext4. The supplied sources do not provide CVSS, confirmed exploitation, or a complete operational impact assessment.
Executive priority
Treat this as a reliability and availability issue for Linux/ext4 infrastructure. Prioritize patching in fleets where hung tasks could affect production workloads, but do not escalate as actively exploited based on the supplied evidence.
Technical view
In ext4_setattr(), failure of ext4_inode_attach_jinode() can jump to the wrong cleanup label, skipping filemap_invalidate_unlock() for mapping->invalidate_lock. The kernel fix changes control flow to the out_mmap_sem cleanup path. The source shows hung fsstress activity after an out-of-memory error.
Likely exposure
Exposure is likely limited to Linux systems using ext4 on affected kernel versions. The bundle identifies Linux kernel involvement and lists affected/fixed version data, including 6.6.89, 6.12.26, 6.14.2, and 6.15, but the flattened version status is not fully clear.
Exploitation context
No active exploitation is supported by the provided sources, and KEV is false. The evidence describes a reliability failure under an error path, not remote code execution or privilege escalation. Trigger requirements are not fully documented in the bundle.
Researcher notes
The vulnerable behavior is an incomplete cleanup path in ext4_setattr(). Evidence is limited to the CVE description and kernel stable references. The source bundle does not define attacker prerequisites, CVSS, CWE, or a distribution-specific affected matrix.
Mitigation direction
Check your distribution kernel advisory for CVE-2025-22120 package status.
Update to a vendor kernel containing the referenced stable ext4 fixes.
Prioritize ext4 systems running unpatched 6.13-era or affected stable kernels.
Monitor production hosts for repeated hung-task reports involving ext4_setattr().
Validation and detection
Inventory Linux kernel versions on ext4-backed systems.
Confirm whether the running kernel includes one of the referenced stable commits.
Review kernel logs for hung tasks or ext4_setattr out-of-memory errors.
Map distribution packages to upstream fixed stable versions before closing exposure.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2025-22120 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
0CVSS vectors
3Timeline events
0ADP providers
5Source links
Vulnerability timeline
Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.
CVE reservedCVE Program
The CVE ID was reserved by the assigning CNA.
CVE publishedCVE Program
The CVE record was published.
Apr 16, 2025, 14:13 UTC (UTC+00:00)
CVE updatedCVE Program
The CVE record metadata indicates this as the latest update time.