Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-38627

published high CVSS 3.1 · 7.8

f2fs: compress: fix UAF of f2fs_inode_info in f2fs_free_dic

Published
22 Aug 2025, 16:00:35 UTC
Updated
05 Aug 2026, 12:03:36 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxbff139b49d9f70c1ac5384aac94554846aa834de to < 74cbeeca4f16823ba58c882e1d8b836c0e39c93d · bff139b49d9f70c1ac5384aac94554846aa834de to < 5d604d40cd3232b09cb339941ef958e49283ed0a · bff139b49d9f70c1ac5384aac94554846aa834de to < cc81768212cdc509e5a986274db7bc24d18cde19 · bff139b49d9f70c1ac5384aac94554846aa834de to < 8fae5b6addd5f6895e03797b56e3c7b9f9cd15c9 · bff139b49d9f70c1ac5384aac94554846aa834de to < 39868685c2a94a70762bc6d77dc81d781d05bff5 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.0 (affected) · 0 to < 6.0 (unaffected · semver) · 6.1.175 through 6.1.* (unaffected · semver) · 6.6.118 through 6.6.* (unaffected · semver) · 6.12.78 through 6.12.* (unaffected · semver) · 6.16.1 through 6.16.* (unaffected · semver) · 6.17 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Debian bookworm linux Advisory build 6.1.176-1 DLA-4665-1
Ubuntu jammy linux-aws-6.8 Advisory build 6.8.0-1050.53~22.04.1 USN-8095-4
Debian bullseye linux-6.1 Advisory build 6.1.176-1~deb11u1 DLA-4671-1
Debian trixie linux Advisory build 6.12.85-1 DSA-6238-1
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Ubuntu jammy linux-aws-6.8-cloud-tools-6.8.0-1050 Advisory build 6.8.0-1050.53~22.04.1 USN-8095-4
Ubuntu jammy linux-aws-6.8-headers-6.8.0-1050 Advisory build 6.8.0-1050.53~22.04.1 USN-8095-4
Ubuntu jammy linux-aws-6.8-tools-6.8.0-1050 Advisory build 6.8.0-1050.53~22.04.1 USN-8095-4
Ubuntu jammy linux-azure-6.8 Advisory build 6.8.0-1051.57~22.04.1 USN-8126-1
Ubuntu jammy linux-azure-6.8-cloud-tools-6.8.0-1051 Advisory build 6.8.0-1051.57~22.04.1 USN-8126-1
Ubuntu jammy linux-azure-6.8-headers-6.8.0-1051 Advisory build 6.8.0-1051.57~22.04.1 USN-8126-1
Ubuntu jammy linux-azure-6.8-tools-6.8.0-1051 Advisory build 6.8.0-1051.57~22.04.1 USN-8126-1
Ubuntu jammy linux-buildinfo-6.8.0-1047-oracle Advisory build 6.8.0-1047.48~22.04.1 USN-8095-1
Ubuntu jammy linux-buildinfo-6.8.0-1047-oracle-64k Advisory build 6.8.0-1047.48~22.04.1 USN-8095-1
Ubuntu jammy linux-buildinfo-6.8.0-1049-ibm Advisory build 6.8.0-1049.49~22.04.1 USN-8095-1
Ubuntu jammy linux-buildinfo-6.8.0-1049-nvidia Advisory build 6.8.0-1049.52~22.04.1 USN-8100-1
Ubuntu jammy linux-buildinfo-6.8.0-1049-nvidia-64k Advisory build 6.8.0-1049.52~22.04.1 USN-8100-1
Ubuntu jammy linux-buildinfo-6.8.0-1050-aws Advisory build 6.8.0-1050.53~22.04.1 USN-8095-4
Ubuntu jammy linux-buildinfo-6.8.0-1050-aws-64k Advisory build 6.8.0-1050.53~22.04.1 USN-8095-4
Ubuntu jammy linux-buildinfo-6.8.0-1051-azure Advisory build 6.8.0-1051.57~22.04.1 USN-8126-1
Ubuntu jammy linux-buildinfo-6.8.0-1052-gcp Advisory build 6.8.0-1052.55~22.04.1 USN-8095-1
Ubuntu jammy linux-buildinfo-6.8.0-1052-gcp-64k Advisory build 6.8.0-1052.55~22.04.1 USN-8095-1
Ubuntu jammy linux-buildinfo-6.8.0-106-generic Advisory build 6.8.0-106.106~22.04.1 USN-8095-1
Ubuntu jammy linux-buildinfo-6.8.0-106-generic-64k Advisory build 6.8.0-106.106~22.04.1 USN-8095-1
Ubuntu jammy linux-buildinfo-6.8.0-106-lowlatency Advisory build 6.8.0-106.106.1~22.04.1 USN-8095-1
Ubuntu jammy linux-buildinfo-6.8.0-106-lowlatency-64k Advisory build 6.8.0-106.106.1~22.04.1 USN-8095-1
Ubuntu jammy linux-buildinfo-6.8.1-1045-realtime Advisory build 6.8.1-1045.46~22.04.1 USN-8095-3
Ubuntu jammy linux-cloud-tools-6.8.0-1050-aws Advisory build 6.8.0-1050.53~22.04.1 USN-8095-4
Ubuntu jammy linux-cloud-tools-6.8.0-1050-aws-64k Advisory build 6.8.0-1050.53~22.04.1 USN-8095-4
Ubuntu jammy linux-cloud-tools-6.8.0-1051-azure Advisory build 6.8.0-1051.57~22.04.1 USN-8126-1
Ubuntu jammy linux-cloud-tools-6.8.0-106-generic Advisory build 6.8.0-106.106~22.04.1 USN-8095-1
Ubuntu jammy linux-cloud-tools-6.8.0-106-lowlatency Advisory build 6.8.0-106.106.1~22.04.1 USN-8095-1
Ubuntu jammy linux-cloud-tools-6.8.1-1045-realtime Advisory build 6.8.1-1045.46~22.04.1 USN-8095-3
Ubuntu jammy linux-gcp-6.8 Advisory build 6.8.0-1052.55~22.04.1 USN-8095-1
Ubuntu jammy linux-gcp-6.8-headers-6.8.0-1052 Advisory build 6.8.0-1052.55~22.04.1 USN-8095-1
Ubuntu jammy linux-gcp-6.8-tools-6.8.0-1052 Advisory build 6.8.0-1052.55~22.04.1 USN-8095-1
Ubuntu jammy linux-headers-6.8.0-1047-oracle Advisory build 6.8.0-1047.48~22.04.1 USN-8095-1
Ubuntu jammy linux-headers-6.8.0-1047-oracle-64k Advisory build 6.8.0-1047.48~22.04.1 USN-8095-1
Ubuntu jammy linux-headers-6.8.0-1049-ibm Advisory build 6.8.0-1049.49~22.04.1 USN-8095-1
Ubuntu jammy linux-headers-6.8.0-1049-nvidia Advisory build 6.8.0-1049.52~22.04.1 USN-8100-1
Ubuntu jammy linux-headers-6.8.0-1049-nvidia-64k Advisory build 6.8.0-1049.52~22.04.1 USN-8100-1
Ubuntu jammy linux-headers-6.8.0-1050-aws Advisory build 6.8.0-1050.53~22.04.1 USN-8095-4
Ubuntu jammy linux-headers-6.8.0-1050-aws-64k Advisory build 6.8.0-1050.53~22.04.1 USN-8095-4
Ubuntu jammy linux-headers-6.8.0-1051-azure Advisory build 6.8.0-1051.57~22.04.1 USN-8126-1
Ubuntu jammy linux-headers-6.8.0-1052-gcp Advisory build 6.8.0-1052.55~22.04.1 USN-8095-1
Ubuntu jammy linux-headers-6.8.0-1052-gcp-64k Advisory build 6.8.0-1052.55~22.04.1 USN-8095-1
Ubuntu jammy linux-headers-6.8.0-106-generic Advisory build 6.8.0-106.106~22.04.1 USN-8095-1
Ubuntu jammy linux-headers-6.8.0-106-generic-64k Advisory build 6.8.0-106.106~22.04.1 USN-8095-1
Ubuntu jammy linux-headers-6.8.0-106-lowlatency Advisory build 6.8.0-106.106.1~22.04.1 USN-8095-1
Ubuntu jammy linux-headers-6.8.0-106-lowlatency-64k Advisory build 6.8.0-106.106.1~22.04.1 USN-8095-1
Ubuntu jammy linux-headers-6.8.1-1045-realtime Advisory build 6.8.1-1045.46~22.04.1 USN-8095-3
Ubuntu jammy linux-hwe-6.8 Advisory build 6.8.0-106.106~22.04.1 USN-8095-1
Ubuntu jammy linux-hwe-6.8-cloud-tools-6.8.0-106 Advisory build 6.8.0-106.106~22.04.1 USN-8095-1
Ubuntu jammy linux-hwe-6.8-headers-6.8.0-106 Advisory build 6.8.0-106.106~22.04.1 USN-8095-1
Ubuntu jammy linux-hwe-6.8-tools-6.8.0-106 Advisory build 6.8.0-106.106~22.04.1 USN-8095-1
Ubuntu jammy linux-ibm-6.8 Advisory build 6.8.0-1049.49~22.04.1 USN-8095-1
Ubuntu jammy linux-ibm-6.8-headers-6.8.0-1049 Advisory build 6.8.0-1049.49~22.04.1 USN-8095-1
Ubuntu jammy linux-ibm-6.8-tools-6.8.0-1049 Advisory build 6.8.0-1049.49~22.04.1 USN-8095-1
Ubuntu jammy linux-image-6.8.0-106-generic Advisory build 6.8.0-106.106~22.04.1 USN-8095-1
Ubuntu jammy linux-image-unsigned-6.8.0-1047-oracle Advisory build 6.8.0-1047.48~22.04.1 USN-8095-1
Ubuntu jammy linux-image-unsigned-6.8.0-1047-oracle-64k Advisory build 6.8.0-1047.48~22.04.1 USN-8095-1
Ubuntu jammy linux-image-unsigned-6.8.0-1049-ibm Advisory build 6.8.0-1049.49~22.04.1 USN-8095-1
Ubuntu jammy linux-image-unsigned-6.8.0-1049-nvidia Advisory build 6.8.0-1049.52~22.04.1 USN-8100-1
Ubuntu jammy linux-image-unsigned-6.8.0-1049-nvidia-64k Advisory build 6.8.0-1049.52~22.04.1 USN-8100-1
Ubuntu jammy linux-image-unsigned-6.8.0-1050-aws Advisory build 6.8.0-1050.53~22.04.1 USN-8095-4
Ubuntu jammy linux-image-unsigned-6.8.0-1050-aws-64k Advisory build 6.8.0-1050.53~22.04.1 USN-8095-4
Ubuntu jammy linux-image-unsigned-6.8.0-1051-azure Advisory build 6.8.0-1051.57~22.04.1 USN-8126-1
Ubuntu jammy linux-image-unsigned-6.8.0-1052-gcp Advisory build 6.8.0-1052.55~22.04.1 USN-8095-1
Ubuntu jammy linux-image-unsigned-6.8.0-1052-gcp-64k Advisory build 6.8.0-1052.55~22.04.1 USN-8095-1
Ubuntu jammy linux-image-unsigned-6.8.0-106-generic Advisory build 6.8.0-106.106~22.04.1 USN-8095-1
Ubuntu jammy linux-image-unsigned-6.8.0-106-generic-64k Advisory build 6.8.0-106.106~22.04.1 USN-8095-1
Ubuntu jammy linux-image-unsigned-6.8.0-106-lowlatency Advisory build 6.8.0-106.106.1~22.04.1 USN-8095-1
Ubuntu jammy linux-image-unsigned-6.8.0-106-lowlatency-64k Advisory build 6.8.0-106.106.1~22.04.1 USN-8095-1
Ubuntu jammy linux-image-unsigned-6.8.1-1045-realtime Advisory build 6.8.1-1045.46~22.04.1 USN-8095-3
Ubuntu jammy linux-lowlatency-hwe-6.8 Advisory build 6.8.0-106.106.1~22.04.1 USN-8095-1
Ubuntu jammy linux-lowlatency-hwe-6.8-cloud-tools-6.8.0-106 Advisory build 6.8.0-106.106.1~22.04.1 USN-8095-1
Ubuntu jammy linux-lowlatency-hwe-6.8-headers-6.8.0-106 Advisory build 6.8.0-106.106.1~22.04.1 USN-8095-1
Ubuntu jammy linux-lowlatency-hwe-6.8-lib-rust-6.8.0-106-lowlatency Advisory build 6.8.0-106.106.1~22.04.1 USN-8095-1
Ubuntu jammy linux-lowlatency-hwe-6.8-tools-6.8.0-106 Advisory build 6.8.0-106.106.1~22.04.1 USN-8095-1
Ubuntu jammy linux-modules-6.8.0-1047-oracle Advisory build 6.8.0-1047.48~22.04.1 USN-8095-1
Ubuntu jammy linux-modules-6.8.0-1047-oracle-64k Advisory build 6.8.0-1047.48~22.04.1 USN-8095-1
Ubuntu jammy linux-modules-6.8.0-1049-ibm Advisory build 6.8.0-1049.49~22.04.1 USN-8095-1
Ubuntu jammy linux-modules-6.8.0-1049-nvidia Advisory build 6.8.0-1049.52~22.04.1 USN-8100-1
Ubuntu jammy linux-modules-6.8.0-1049-nvidia-64k Advisory build 6.8.0-1049.52~22.04.1 USN-8100-1
Ubuntu jammy linux-modules-6.8.0-1050-aws Advisory build 6.8.0-1050.53~22.04.1 USN-8095-4
Ubuntu jammy linux-modules-6.8.0-1050-aws-64k Advisory build 6.8.0-1050.53~22.04.1 USN-8095-4
Ubuntu jammy linux-modules-6.8.0-1051-azure Advisory build 6.8.0-1051.57~22.04.1 USN-8126-1
Ubuntu jammy linux-modules-6.8.0-1052-gcp Advisory build 6.8.0-1052.55~22.04.1 USN-8095-1
Ubuntu jammy linux-modules-6.8.0-1052-gcp-64k Advisory build 6.8.0-1052.55~22.04.1 USN-8095-1
Ubuntu jammy linux-modules-6.8.0-106-generic Advisory build 6.8.0-106.106~22.04.1 USN-8095-1
Ubuntu jammy linux-modules-6.8.0-106-generic-64k Advisory build 6.8.0-106.106~22.04.1 USN-8095-1
Ubuntu jammy linux-modules-6.8.0-106-lowlatency Advisory build 6.8.0-106.106.1~22.04.1 USN-8095-1
Ubuntu jammy linux-modules-6.8.0-106-lowlatency-64k Advisory build 6.8.0-106.106.1~22.04.1 USN-8095-1
Ubuntu jammy linux-modules-6.8.1-1045-realtime Advisory build 6.8.1-1045.46~22.04.1 USN-8095-3
Ubuntu jammy linux-modules-extra-6.8.0-1047-oracle Advisory build 6.8.0-1047.48~22.04.1 USN-8095-1
Ubuntu jammy linux-modules-extra-6.8.0-1047-oracle-64k Advisory build 6.8.0-1047.48~22.04.1 USN-8095-1
Ubuntu jammy linux-modules-extra-6.8.0-1049-ibm Advisory build 6.8.0-1049.49~22.04.1 USN-8095-1
Ubuntu jammy linux-modules-extra-6.8.0-1049-nvidia Advisory build 6.8.0-1049.52~22.04.1 USN-8100-1
Ubuntu jammy linux-modules-extra-6.8.0-1050-aws Advisory build 6.8.0-1050.53~22.04.1 USN-8095-4
Ubuntu jammy linux-modules-extra-6.8.0-1050-aws-64k Advisory build 6.8.0-1050.53~22.04.1 USN-8095-4
Ubuntu jammy linux-modules-extra-6.8.0-1051-azure Advisory build 6.8.0-1051.57~22.04.1 USN-8126-1

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: f2fs: compress: fix UAF of f2fs_inode_info in f2fs_free_dic The decompress_io_ctx may be released asynchronously after I/O completion. If this file is deleted immediately after read, and the kworker of processing post_read_wq has not been executed yet due to high workloads, It is possible that the inode(f2fs_inode_info) is evicted and freed before it is used f2fs_free_dic. The UAF case as below: Thread A Thread B - f2fs_decompress_end_io - f2fs_put_dic - queue_work add free_dic work to post_read_wq - do_unlink - iput - evict - call_rcu This file is deleted after read. Thread C kworker to process post_read_wq - rcu_do_batch - f2fs_free_inode - kmem_cache_free inode is freed by rcu - process_scheduled_works - f2fs_late_free_dic - f2fs_free_dic - f2fs_release_decomp_mem read (dic->inode)->i_compress_algorithm This patch store compress_algorithm and sbi in dic to avoid inode UAF. In addition, the previous solution is deprecated in [1] may cause system hang. [1] https://lore.kernel.org/all/[email protected]

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

15

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The whole sequence — creating a compressed file via `FS_IOC_SETFLAGS`/`compress_extension`, evicting its page cache with `posix_fadvise()`, reading it, and unlinking it — is performed through ordinary local syscalls on a mounted f2fs volume. No network protocol, remote peer, or adjacent-network data reaches `f2fs_free_dic()`. AC:L - The attacker drives both sides of the race: they submit the compressed read that queues `free_work` and they issue the `close()`/`unlink()` that evicts the inode, and they widen the window at will by saturating `post_read_wq` (bounded `max_active = num_online_cpus()`) with concurrent post-read work so the kworker is delayed past the RCU grace period. Every attempt is free and retryable in a loop, and f2fs compression is a mainstream shipping configuration on Android and embedded devices, not a rare option. PR:L - No capability, LSM, or namespace gate exists on the path — `vfs_fileattr_set()` only requires `inode_owner_or_capable()` on the attacker's own file, and reading/unlinking a file the attacker created needs nothing beyond normal write access to their own directory. An ordinary user account or an Android app with storage access on a compression-enabled f2fs mount suffices. UI:N - The attacking process performs every step itself — create the compressed file, drop its cache, read it, and delete it. No victim must mount a filesystem, open a file, or take any other action. S:U - The freed `f2fs_inode_info`, the wild `sbi`/`cops` dereferences, and any resulting corruption all occur within the same kernel's security authority. No hypervisor, IOMMU, guest, or sandbox boundary is crossed. C:H - This is a use-after-free read of a `f2fs_inode_cachep` object whose memory the attacker can groom by spraying after the RCU free, so the values pulled out (`inode->i_sb`, `i_compress_algorithm`) are attacker-influenced; the tainted `i_compress_algorithm` byte then indexes the 4-entry `f2fs_cops[]` array up to 255 entries out of bounds, reading arbitrary adjacent kernel data. Combined with the wild `sbi` deref, the flaw yields a kernel-memory read primitive usable for KASLR defeat and data disclosure. I:H - The garbage `cops` obtained from the out-of-bounds `f2fs_cops[]` index is immediately used for the indirect call `cops->destroy_decompress_ctx(dic)`, a control-flow hijack primitive, and the wild `sbi` is passed to `page_array_free()` which performs `kmem_cache_free(sbi->page_array_slab, pages)` — freeing a live object into an attacker-influenced cache pointer, a classic path to arbitrary heap corruption and privilege escalation. Per UAF scoring, heap grooming of the recycled inode slab gives write as well as read primitives. A:H - Even unexploited, dereferencing the freed inode's `i_sb` and calling through an out-of-bounds `f2fs_cops[]` entry oopses or panics the kernel, and it happens inside a `post_read_wq` kworker so the crash wedges the filesystem's decompression workqueue rather than just one task. The unprivileged attacker can retry the trigger indefinitely, and `panic_on_oops=1` builds (Android, automotive, embedded) take an immediate full system panic.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux bff139b49d9f70c1ac5384aac94554846aa834de to < 74cbeeca4f16823ba58c882e1d8b836c0e39c93d (affected · git)bff139b49d9f70c1ac5384aac94554846aa834de to < 5d604d40cd3232b09cb339941ef958e49283ed0a (affected · git)bff139b49d9f70c1ac5384aac94554846aa834de to < cc81768212cdc509e5a986274db7bc24d18cde19 (affected · git)bff139b49d9f70c1ac5384aac94554846aa834de to < 8fae5b6addd5f6895e03797b56e3c7b9f9cd15c9 (affected · git)bff139b49d9f70c1ac5384aac94554846aa834de to < 39868685c2a94a70762bc6d77dc81d781d05bff5 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.0 (affected)0 to < 6.0 (unaffected · semver)6.1.175 through 6.1.* (unaffected · semver)6.6.118 through 6.6.* (unaffected · semver)6.12.78 through 6.12.* (unaffected · semver)6.16.1 through 6.16.* (unaffected · semver)6.17 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

5

Provider assertions

1

Linux · cna

f2fs: compress: fix UAF of f2fs_inode_info in f2fs_free_dic

Provenance

Schema
5.2
Searchable
yes
Content hash
a846b1ac10239a108dee72838364cb7a6e3f088ea74b6f18945cc125caccd28c
Ingested
23 Sep 2026, 08:46:47 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected