CVE-2022-49464
published high CVSS 3.1 · 7.8erofs: fix buffer copy overflow of ztailpacking feature
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| 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``.
Related advisories
Vendor advisories explicitly linked to this CVE.
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
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 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.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| 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
References
3Provider assertions
2Linux · 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