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-2022-49464

published high CVSS 3.1 · 7.8

erofs: fix buffer copy overflow of ztailpacking feature

Published
26 Feb 2025, 02:13:10 UTC
Updated
05 Aug 2026, 08:55:16 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxab749badf9f41f32509cd103391b81ea7e684b76 to < 4d53a625f29074e7b8236c2c0e0922edb7608df9 · ab749badf9f41f32509cd103391b81ea7e684b76 to < 6b59e1907f58cf877c563dcf013159eb9f994b64 · ab749badf9f41f32509cd103391b81ea7e684b76 to < dcbe6803fffd387f72b48c2373b5f5ed12a5804b · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.17 (affected) · 0 to < 5.17 (unaffected · semver) · 5.17.14 through 5.17.* (unaffected · semver) · 5.18.3 through 5.18.* (unaffected · semver) · 5.19 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

Description

In the Linux kernel, the following vulnerability has been resolved: erofs: fix buffer copy overflow of ztailpacking feature I got some KASAN report as below: [ 46.959738] ================================================================== [ 46.960430] BUG: KASAN: use-after-free in z_erofs_shifted_transform+0x2bd/0x370 [ 46.960430] Read of size 4074 at addr ffff8880300c2f8e by task fssum/188 ... [ 46.960430] Call Trace: [ 46.960430] <TASK> [ 46.960430] dump_stack_lvl+0x41/0x5e [ 46.960430] print_report.cold+0xb2/0x6b7 [ 46.960430] ? z_erofs_shifted_transform+0x2bd/0x370 [ 46.960430] kasan_report+0x8a/0x140 [ 46.960430] ? z_erofs_shifted_transform+0x2bd/0x370 [ 46.960430] kasan_check_range+0x14d/0x1d0 [ 46.960430] memcpy+0x20/0x60 [ 46.960430] z_erofs_shifted_transform+0x2bd/0x370 [ 46.960430] z_erofs_decompress_pcluster+0xaae/0x1080 The root cause is that the tail pcluster won't be a complete filesystem block anymore. So if ztailpacking is used, the second part of an uncompressed tail pcluster may not be ``rq->pageofs_out``.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

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 bug is reached only via the local EROFS compressed read path (read/mmap/readahead → z_erofs_decompress_pcluster → z_erofs_shifted_transform) after a local block/file-backed mount; erofs has FS_REQUIRES_DEV and no network-protocol entry into the decompressor. AC:L - An image with ztailpacking and an uncompressed (SHIFTED) tail pcluster that is not a full filesystem block but spans two pages deterministically uses pageofs_out instead of lefthalf, so the oversized memcpy/memmove fires on ordinary reads with no race or attacker-uncontrollable condition. PR:L - Mounting erofs is not userns-capable, but on the worst-case deployment (already-mounted Android/embedded system images, or automounted/composefs/APEX images) any unprivileged local user with read access triggers decompression with no further capability check. UI:N - On typical EROFS deployments the filesystem is already mounted, and the attacker triggers the overflow entirely with their own reads; automounters and container/APEX image runtimes similarly mount attacker-supplied images without a separate interactive victim step. S:U - The OOB/UAF copy and resulting kernel memory corruption stay within the host kernel's security authority; no VM escape, IOMMU bypass, or other cross-boundary impact occurs. C:H - KASAN reports a use-after-free/out-of-bounds read of thousands of bytes that memcpy copies from adjacent/freed kernel memory into the file's page cache, which userspace can then read—an arbitrary kernel-memory disclosure per OOB-read/UAF guidance. I:H - The same overflow is a buffer copy overflow (oversized memcpy into the output page and memmove that can write past the inline source page when pageofs_in+pageofs_out exceeds PAGE_SIZE), and UAF/OOB write class corruption enables control-flow hijacking per kernel guidance. A:H - The demonstrated KASAN use-after-free/out-of-bounds access can oops or panic the kernel even when not fully exploited, which is Availability High under kernel CVSS guidance.

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 7.8 high CISA-ADP · adp CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H —

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux ab749badf9f41f32509cd103391b81ea7e684b76 to < 4d53a625f29074e7b8236c2c0e0922edb7608df9 (affected · git)ab749badf9f41f32509cd103391b81ea7e684b76 to < 6b59e1907f58cf877c563dcf013159eb9f994b64 (affected · git)ab749badf9f41f32509cd103391b81ea7e684b76 to < dcbe6803fffd387f72b48c2373b5f5ed12a5804b (affected · git)Default: unaffected Linux · cna
Linux Linux 5.17 (affected)0 to < 5.17 (unaffected · semver)5.17.14 through 5.17.* (unaffected · semver)5.18.3 through 5.18.* (unaffected · semver)5.19 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

1
  • CWE-416 CWE-416 Use After Free (CISA-ADP · adp)

References

3

Provider assertions

2

Linux · cna

erofs: fix buffer copy overflow of ztailpacking feature

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
bb4344780442ab1b25cfebe29c820cd9674cc8e03a77571acc6fb1f2ce2813f5
Ingested
23 Sep 2026, 08:04:12 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