CVE-2022-50869
published high CVSS 3.1 · 7.8fs/ntfs3: Fix slab-out-of-bounds in r_page
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxb46acd6a6a627d876898e1c84d3f84902264b445 to < ed686e7a26dd19ae6b46bb662f735acfa88ff7bc · b46acd6a6a627d876898e1c84d3f84902264b445 to < bf86a640a34947d92062996e1a75b9cd9d83dd19 · b46acd6a6a627d876898e1c84d3f84902264b445 to < 6d076293e5bffdf897ea5f975669206e09beed6a · b46acd6a6a627d876898e1c84d3f84902264b445 to < ecfbd57cf9c5ca225184ae266ce44ae473792132 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 5.15.87 through 5.15.* (unaffected · semver) · 6.0.17 through 6.0.* (unaffected · semver) · 6.1.3 through 6.1.* (unaffected · semver) · 6.2 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 | AL2 | Release evaluationALAS2KERNEL-5.15-2023-013 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | kernelaarch64 | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2023-013 |
| Amazon Linux | AL2 | kerneli686 | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2023-013 |
| Amazon Linux | AL2 | kernelsrc | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2023-013 |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2 | kernelx86_64 | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2023-013 |
Description
In the Linux kernel, the following vulnerability has been resolved: fs/ntfs3: Fix slab-out-of-bounds in r_page When PAGE_SIZE is 64K, if read_log_page is called by log_read_rst for the first time, the size of *buffer would be equal to DefaultLogPageSize(4K).But for *buffer operations like memcpy, if the memory area size(n) which being assigned to buffer is larger than 4K (log->page_size(64K) or bytes(64K-page_off)), it will cause an out of boundary error. Call trace: [...] kasan_report+0x44/0x130 check_memory_region+0xf8/0x1a0 memcpy+0xc8/0x100 ntfs_read_run_nb+0x20c/0x460 read_log_page+0xd0/0x1f4 log_read_rst+0x110/0x75c log_replay+0x1e8/0x4aa0 ntfs_loadlog_and_replay+0x290/0x2d0 ntfs_fill_super+0x508/0xec0 get_tree_bdev+0x1fc/0x34c [...] Fix this by setting variable r_page to NULL in log_read_rst.
Related advisories
Vendor advisories explicitly linked to 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:N/UI:R/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The bug is reached only by presenting a crafted NTFS volume to the in-kernel ntfs3 driver so mount runs ntfs_fill_super→ntfs_loadlog_and_replay→log_replay→log_read_rst→read _log_page; this is a local block-device/loop/USB image path with no network protocol handler. AC:L - On 16K/64K PAGE_SIZE kernels log->page_size exceeds the fixed 4K r_page allocation so the first read_log_page deterministically overflows; on 4K kernels a crafted on-disk sys_page_size < 4096 takes the realloc path and overflows the same way, with no race or uncontrollable layout dependency. PR:N - The attacker needs no account on the target—the payload is solely a malicious NTFS image (USB stick, disk image, or media handed to udisks2/automount on desktops, kiosks, Android, or automotive systems), matching other ntfs3 image-parsing scores. UI:R - Someone must mount the volume or insert the media into a system that automounts it; ntfs3 is FS_REQUIRES_DEV without FS_USERNS_MOUNT, so an unprivileged userns cannot mount it alone. S:U - The slab out-of-bounds write corrupts host kernel heap within the same security authority as the mounting kernel; no VM, IOMMU, or sandbox boundary is crossed. C:H - ntfs_read_run_nb memcpy's up to tens of KiB of attacker-controlled $LogFile bytes past a 4K slab object into adjacent heap, enabling classic heap-overlap disclosure primitives consistent with memory-corruption guidance. I:H - This is a large attacker-controlled slab out-of-bounds write (disk contents into undersized r_page), providing a heap write primitive suitable for adjacent-object corruption and control-flow hijack. A:H - The commit's KASAN stack shows a slab-out-of-bounds fault in ntfs_read_run_nb during mount that oopses/panics the kernel, fully denying availability.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | b46acd6a6a627d876898e1c84d3f84902264b445 to < ed686e7a26dd19ae6b46bb662f735acfa88ff7bc (affected · git)b46acd6a6a627d876898e1c84d3f84902264b445 to < bf86a640a34947d92062996e1a75b9cd9d83dd19 (affected · git)b46acd6a6a627d876898e1c84d3f84902264b445 to < 6d076293e5bffdf897ea5f975669206e09beed6a (affected · git)b46acd6a6a627d876898e1c84d3f84902264b445 to < ecfbd57cf9c5ca225184ae266ce44ae473792132 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.15 (affected)0 to < 5.15 (unaffected · semver)5.15.87 through 5.15.* (unaffected · semver)6.0.17 through 6.0.* (unaffected · semver)6.1.3 through 6.1.* (unaffected · semver)6.2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
fs/ntfs3: Fix slab-out-of-bounds in r_page
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d05aceb3ffc603f7a33ddc201e86d39ef7a577eabd43574163bee33b6ea3cb4b
- Ingested
- 23 Sep 2026, 08:04:58 UTC
- Source record
- Official CVE record