# CVE-2022-50849: pstore: Avoid kcore oops by vmap()ing with VM\_IOREMAP

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **Published:** 2025-12-30T12:15:26.431Z
- **Modified:** 2026-06-17T05:24:17.570Z

## Who should check

- Anyone running Linux \>= 404a6043385de17273624b076599669db5ad891f, \< 1579bed1613802a323a1e14567faa95c149e105e; \>= 404a6043385de17273624b076599669db5ad891f, \< fdebcc33b663d2e8da937653ddfbfc1315047eaa; \>= 404a6043385de17273624b076599669db5ad891f, \< 6d9460214e363e1f3d0756ee5d947e76e3e6f86c; \>= 404a6043385de17273624b076599669db5ad891f, \< 4d3126f242a0090342ffe925c35fb4f4252b7562; \>= 404a6043385de17273624b076599669db5ad891f, \< 295f59cd2cdeed841850d02dddde3a122cbf6fc6; \>= 404a6043385de17273624b076599669db5ad891f, \< ebc73c4f266281e2cad1a372ecd81572d95375b6; \>= 404a6043385de17273624b076599669db5ad891f, \< 69dbff7d2681c55a4d979fd9b75576303e69979f; \>= 404a6043385de17273624b076599669db5ad891f, \< 2f82381d0681b10f9ddd27be98c27363b5a3cd1c; \>= 404a6043385de17273624b076599669db5ad891f, \< e6b842741b4f39007215fd7e545cb55aa3d358a2
- Anyone running Linux 3.4

## Description

In the Linux kernel, the following vulnerability has been resolved:

pstore: Avoid kcore oops by vmap()ing with VM\_IOREMAP

An oops can be induced by running 'cat /proc/kcore \> /dev/null' on
devices using pstore with the ram backend because kmap\_atomic() assumes
lowmem pages are accessible with \_\_va().

 Unable to handle kernel paging request at virtual address ffffff807ff2b000
 Mem abort info:
 ESR = 0x96000006
 EC = 0x25: DABT (current EL), IL = 32 bits
 SET = 0, FnV = 0
 EA = 0, S1PTW = 0
 FSC = 0x06: level 2 translation fault
 Data abort info:
 ISV = 0, ISS = 0x00000006
 CM = 0, WnR = 0
 swapper pgtable: 4k pages, 39-bit VAs, pgdp=0000000081d87000
 \[ffffff807ff2b000\] pgd=180000017fe18003, p4d=180000017fe18003, pud=180000017fe18003, pmd=0000000000000000
 Internal error: Oops: 96000006 \[\#1\] PREEMPT SMP
 Modules linked in: dm\_integrity
 CPU: 7 PID: 21179 Comm: perf Not tainted 5.15.67-10882-ge4eb2eb988cd \#1 baa443fb8e8477896a370b31a821eb2009f9bfba
 Hardware name: Google Lazor (rev3 - 8) (DT)
 pstate: a0400009 (NzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
 pc : \_\_memcpy+0x110/0x260
 lr : vread+0x194/0x294
 sp : ffffffc013ee39d0
 x29: ffffffc013ee39f0 x28: 0000000000001000 x27: ffffff807ff2b000
 x26: 0000000000001000 x25: ffffffc0085a2000 x24: ffffff802d4b3000
 x23: ffffff80f8a60000 x22: ffffff802d4b3000 x21: ffffffc0085a2000
 x20: ffffff8080b7bc68 x19: 0000000000001000 x18: 0000000000000000
 x17: 0000000000000000 x16: 0000000000000000 x15: ffffffd3073f2e60
 x14: ffffffffad588000 x13: 0000000000000000 x12: 0000000000000001
 x11: 00000000000001a2 x10: 00680000fff2bf0b x9 : 03fffffff807ff2b
 x8 : 0000000000000001 x7 : 0000000000000000 x6 : 0000000000000000
 x5 : ffffff802d4b4000 x4 : ffffff807ff2c000 x3 : ffffffc013ee3a78
 x2 : 0000000000001000 x1 : ffffff807ff2b000 x0 : ffffff802d4b3000
 Call trace:
 \_\_memcpy+0x110/0x260
 read\_kcore+0x584/0x778
 proc\_reg\_read+0xb4/0xe4

During early boot, memblock reserves the pages for the ramoops reserved
memory node in DT that would otherwise be part of the direct lowmem
mapping. Pstore's ram backend reuses those reserved pages to change the
memory type (writeback or non-cached) by passing the pages to vmap()
(see pfn\_to\_page() usage in persistent\_ram\_vmap() for more details) with
specific flags. When read\_kcore() starts iterating over the vmalloc
region, it runs over the virtual address that vmap() returned for
ramoops. In aligned\_vread() the virtual address is passed to
vmalloc\_to\_page() which returns the page struct for the reserved lowmem
area. That lowmem page is passed to kmap\_atomic(), which effectively
calls page\_to\_virt() that assumes a lowmem page struct must be directly
accessible with \_\_va() and friends. These pages are mapped via vmap()
though, and the lowmem mapping was never made, so accessing them via the
lowmem virtual address oopses like above.

Let's side-step this problem by passing VM\_IOREMAP to vmap(). This will
tell vread() to not include the ramoops region in the kcore. Instead the
area will look like a bunch of zeros. The alternative is to teach kmap()
about vmalloc areas that intersect with lowmem. Presumably such a change
isn't a one-liner, and there isn't much interest in inspecting the
ramoops region in kcore files anyway, so the most expedient route is
taken for now.

## Affected and fixed versions

- Linux: \>= 404a6043385de17273624b076599669db5ad891f, \< 1579bed1613802a323a1e14567faa95c149e105e; \>= 404a6043385de17273624b076599669db5ad891f, \< fdebcc33b663d2e8da937653ddfbfc1315047eaa; \>= 404a6043385de17273624b076599669db5ad891f, \< 6d9460214e363e1f3d0756ee5d947e76e3e6f86c; \>= 404a6043385de17273624b076599669db5ad891f, \< 4d3126f242a0090342ffe925c35fb4f4252b7562; \>= 404a6043385de17273624b076599669db5ad891f, \< 295f59cd2cdeed841850d02dddde3a122cbf6fc6; \>= 404a6043385de17273624b076599669db5ad891f, \< ebc73c4f266281e2cad1a372ecd81572d95375b6; \>= 404a6043385de17273624b076599669db5ad891f, \< 69dbff7d2681c55a4d979fd9b75576303e69979f; \>= 404a6043385de17273624b076599669db5ad891f, \< 2f82381d0681b10f9ddd27be98c27363b5a3cd1c; \>= 404a6043385de17273624b076599669db5ad891f, \< e6b842741b4f39007215fd7e545cb55aa3d358a2 (cvelist)
- Linux: 3.4 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50849. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50849.md
Affected: Linux >= 404a6043385de17273624b076599669db5ad891f, < 1579bed1613802a323a1e14567faa95c149e105e; >= 404a6043385de17273624b076599669db5ad891f, < fdebcc33b663d2e8da937653ddfbfc1315047eaa; >= 404a6043385de17273624b076599669db5ad891f, < 6d9460214e363e1f3d0756ee5d947e76e3e6f86c; >= 404a6043385de17273624b0…
Fixed in: Linux 1579bed1613802a323a1e14567faa95c149e105e, Linux 6d9460214e363e1f3d0756ee5d947e76e3e6f86c, Linux 4d3126f242a0090342ffe925c35fb4f4252b7562, Linux 295f59cd2cdeed841850d02dddde3a122cbf6fc6, Linux 69dbff7d2681c55a4d979fd9b75576303e69979f, Linux 2f82381d0681b10f9ddd27be98c27363b5a3cd1c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50849 being exploited?

There is no confirmed exploitation: CVE-2022-50849 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50849?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50849?

Linux \>= 404a6043385de17273624b076599669db5ad891f, \< 1579bed1613802a323a1e14567faa95c149e105e; \>= 404a6043385de17273624b076599669db5ad891f, \< fdebcc33b663d2e8da937653ddfbfc1315047eaa; \>= 404a6043385de17273624b076599669db5ad891f, \< 6d9460214e363e1f3d0756ee5d947e76e3e6f86c; \>= 404a6043385de17273624b076599669db5ad891f, \< 4d3126f242a0090342ffe925c35fb4f4252b7562; \>= 404a6043385de17273624b076599669db5ad891f, \< 295f59cd2cdeed841850d02dddde3a122cbf6fc6; \>= 404a6043385de17273624b076599669db5ad891f, \< ebc73c4f266281e2cad1a372ecd81572d95375b6; \>= 404a6043385de17273624b076599669db5ad891f, \< 69dbff7d2681c55a4d979fd9b75576303e69979f; \>= 404a6043385de17273624b076599669db5ad891f, \< 2f82381d0681b10f9ddd27be98c27363b5a3cd1c; \>= 404a6043385de17273624b076599669db5ad891f, \< e6b842741b4f39007215fd7e545cb55aa3d358a2; Linux 3.4.

### Is there a fix for CVE-2022-50849?

Yes. Fixed in Linux 1579bed1613802a323a1e14567faa95c149e105e, Linux 6d9460214e363e1f3d0756ee5d947e76e3e6f86c, Linux 4d3126f242a0090342ffe925c35fb4f4252b7562, Linux 295f59cd2cdeed841850d02dddde3a122cbf6fc6, Linux 69dbff7d2681c55a4d979fd9b75576303e69979f, Linux 2f82381d0681b10f9ddd27be98c27363b5a3cd1c. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50849?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/1579bed1613802a323a1e14567faa95c149e105e>
- other: <https://git.kernel.org/stable/c/fdebcc33b663d2e8da937653ddfbfc1315047eaa>
- other: <https://git.kernel.org/stable/c/6d9460214e363e1f3d0756ee5d947e76e3e6f86c>
- other: <https://git.kernel.org/stable/c/4d3126f242a0090342ffe925c35fb4f4252b7562>
- other: <https://git.kernel.org/stable/c/295f59cd2cdeed841850d02dddde3a122cbf6fc6>
- other: <https://git.kernel.org/stable/c/ebc73c4f266281e2cad1a372ecd81572d95375b6>
- other: <https://git.kernel.org/stable/c/69dbff7d2681c55a4d979fd9b75576303e69979f>
- other: <https://git.kernel.org/stable/c/2f82381d0681b10f9ddd27be98c27363b5a3cd1c>
- other: <https://git.kernel.org/stable/c/e6b842741b4f39007215fd7e545cb55aa3d358a2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50849>

HTML: <https://flawdb.com/CVE-2022-50849> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50849>
