# CVE-2023-53699: riscv: move memblock\_allow\_resize() after linear mapping is ready

> 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.28% (percentile 13, 2026-11-26)
- **Published:** 2025-10-22T13:23:38.981Z
- **Modified:** 2026-10-28T19:10:00.193Z

## Who should check

- Anyone running Linux \>= 671f9a3e2e24cdeb2d2856abee7422f093e23e29, \< a4284246fca2ef482a8fcf5ad7d2c33a45b41e9c; \>= 671f9a3e2e24cdeb2d2856abee7422f093e23e29, \< 0a1b80ff4f721c4be98707bfe9d20238df133eb8; \>= 671f9a3e2e24cdeb2d2856abee7422f093e23e29, \< ba11f4e59509538810e5c44578fc73984acdf1d7; \>= 671f9a3e2e24cdeb2d2856abee7422f093e23e29, \< 85fadc0d04119c2fe4a20287767ab904c6d21ba1
- Anyone running Linux 5.3

## Description

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

riscv: move memblock\_allow\_resize() after linear mapping is ready

The initial memblock metadata is accessed from kernel image mapping. The
regions arrays need to "reallocated" from memblock and accessed through
linear mapping to cover more memblock regions. So the resizing should
not be allowed until linear mapping is ready. Note that there are
memblock allocations when building linear mapping.

This patch is similar to 24cc61d8cb5a ("arm64: memblock: don't permit
memblock resizing until linear mapping is up").

In following log, many memblock regions are reserved before
create\_linear\_mapping\_page\_table(). And then it triggered reallocation
of memblock.reserved.regions and memcpy the old array in kernel image
mapping to the new array in linear mapping which caused a page fault.

\[    0.000000\] memblock\_reserve: \[0x00000000bf01f000-0x00000000bf01ffff\] early\_init\_fdt\_scan\_reserved\_mem+0x28c/0x2c6
\[    0.000000\] memblock\_reserve: \[0x00000000bf021000-0x00000000bf021fff\] early\_init\_fdt\_scan\_reserved\_mem+0x28c/0x2c6
\[    0.000000\] memblock\_reserve: \[0x00000000bf023000-0x00000000bf023fff\] early\_init\_fdt\_scan\_reserved\_mem+0x28c/0x2c6
\[    0.000000\] memblock\_reserve: \[0x00000000bf025000-0x00000000bf025fff\] early\_init\_fdt\_scan\_reserved\_mem+0x28c/0x2c6
\[    0.000000\] memblock\_reserve: \[0x00000000bf027000-0x00000000bf027fff\] early\_init\_fdt\_scan\_reserved\_mem+0x28c/0x2c6
\[    0.000000\] memblock\_reserve: \[0x00000000bf029000-0x00000000bf029fff\] early\_init\_fdt\_scan\_reserved\_mem+0x28c/0x2c6
\[    0.000000\] memblock\_reserve: \[0x00000000bf02b000-0x00000000bf02bfff\] early\_init\_fdt\_scan\_reserved\_mem+0x28c/0x2c6
\[    0.000000\] memblock\_reserve: \[0x00000000bf02d000-0x00000000bf02dfff\] early\_init\_fdt\_scan\_reserved\_mem+0x28c/0x2c6
\[    0.000000\] memblock\_reserve: \[0x00000000bf02f000-0x00000000bf02ffff\] early\_init\_fdt\_scan\_reserved\_mem+0x28c/0x2c6
\[    0.000000\] memblock\_reserve: \[0x00000000bf030000-0x00000000bf030fff\] early\_init\_fdt\_scan\_reserved\_mem+0x28c/0x2c6
\[    0.000000\] OF: reserved mem: 0x0000000080000000..0x000000008007ffff (512 KiB) map non-reusable mmode\_resv0@80000000
\[    0.000000\] memblock\_reserve: \[0x00000000bf000000-0x00000000bf001fed\] paging\_init+0x19a/0x5ae
\[    0.000000\] memblock\_phys\_alloc\_range: 4096 bytes align=0x1000 from=0x0000000000000000 max\_addr=0x0000000000000000 alloc\_pmd\_fixmap+0x14/0x1c
\[    0.000000\] memblock\_reserve: \[0x000000017ffff000-0x000000017fffffff\] memblock\_alloc\_range\_nid+0xb8/0x128
\[    0.000000\] memblock: reserved is doubled to 256 at \[0x000000017fffd000-0x000000017fffe7ff\]
\[    0.000000\] Unable to handle kernel paging request at virtual address ff600000ffffd000
\[    0.000000\] Oops \[\#1\]
\[    0.000000\] Modules linked in:
\[    0.000000\] CPU: 0 PID: 0 Comm: swapper Not tainted 6.4.0-rc1-00011-g99a670b2069c \#66
\[    0.000000\] Hardware name: riscv-virtio,qemu (DT)
\[    0.000000\] epc : \_\_memcpy+0x60/0xf8
\[    0.000000\]  ra : memblock\_double\_array+0x192/0x248
\[    0.000000\] epc : ffffffff8081d214 ra : ffffffff80a3dfc0 sp : ffffffff81403bd0
\[    0.000000\]  gp : ffffffff814fbb38 tp : ffffffff8140dac0 t0 : 0000000001600000
\[    0.000000\]  t1 : 0000000000000000 t2 : 000000008f001000 s0 : ffffffff81403c60
\[    0.000000\]  s1 : ffffffff80c0bc98 a0 : ff600000ffffd000 a1 : ffffffff80c0bcd8
\[    0.000000\]  a2 : 0000000000000c00 a3 : ffffffff80c0c8d8 a4 : 0000000080000000
\[    0.000000\]  a5 : 0000000000080000 a6 : 0000000000000000 a7 : 0000000080200000
\[    0.000000\]  s2 : ff600000ffffd000 s3 : 0000000000002000 s4 : 0000000000000c00
\[    0.000000\]  s5 : ffffffff80c0bc60 s6 : ffffffff80c0bcc8 s7 : 0000000000000000
\[    0.000000\]  s8 : ffffffff814fd0a8 s9 : 000000017fffe7ff s10: 0000000000000000
\[    0.000000\]  s11: 0000000000001000 t3 : 0000000000001000 t4 : 0000000000000000
\[    0.000000\]  t5 : 000000008f003000 t6 : ff600000ffffd000
\[    0.000000\] status: 0000000200000100 badaddr: ff600000ffffd000 cause: 000000000000000f
\[    0.000000\] \[\<fff
---truncated---

## Affected and fixed versions

- Linux: \>= 671f9a3e2e24cdeb2d2856abee7422f093e23e29, \< a4284246fca2ef482a8fcf5ad7d2c33a45b41e9c; \>= 671f9a3e2e24cdeb2d2856abee7422f093e23e29, \< 0a1b80ff4f721c4be98707bfe9d20238df133eb8; \>= 671f9a3e2e24cdeb2d2856abee7422f093e23e29, \< ba11f4e59509538810e5c44578fc73984acdf1d7; \>= 671f9a3e2e24cdeb2d2856abee7422f093e23e29, \< 85fadc0d04119c2fe4a20287767ab904c6d21ba1 (cvelist)
- Linux: 5.3 (cvelist)

## Mitigation

- Upgrade Linux to 85fadc0d04119c2fe4a20287767ab904c6d21ba1 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53699.md
Affected: Linux >= 671f9a3e2e24cdeb2d2856abee7422f093e23e29, < a4284246fca2ef482a8fcf5ad7d2c33a45b41e9c; >= 671f9a3e2e24cdeb2d2856abee7422f093e23e29, < 0a1b80ff4f721c4be98707bfe9d20238df133eb8; >= 671f9a3e2e24cdeb2d2856abee7422f093e23e29, < ba11f4e59509538810e5c44578fc73984acdf1d7; >= 671f9a3e2e24cdeb2d2856a…
Fixed in: Linux 0a1b80ff4f721c4be98707bfe9d20238df133eb8, Linux 85fadc0d04119c2fe4a20287767ab904c6d21ba1

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-2023-53699 being exploited?

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

### How serious is CVE-2023-53699?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2023-53699?

Linux \>= 671f9a3e2e24cdeb2d2856abee7422f093e23e29, \< a4284246fca2ef482a8fcf5ad7d2c33a45b41e9c; \>= 671f9a3e2e24cdeb2d2856abee7422f093e23e29, \< 0a1b80ff4f721c4be98707bfe9d20238df133eb8; \>= 671f9a3e2e24cdeb2d2856abee7422f093e23e29, \< ba11f4e59509538810e5c44578fc73984acdf1d7; \>= 671f9a3e2e24cdeb2d2856abee7422f093e23e29, \< 85fadc0d04119c2fe4a20287767ab904c6d21ba1; Linux 5.3.

### Is there a fix for CVE-2023-53699?

Yes. Fixed in Linux 0a1b80ff4f721c4be98707bfe9d20238df133eb8, Linux 85fadc0d04119c2fe4a20287767ab904c6d21ba1. Upgrade Linux to 85fadc0d04119c2fe4a20287767ab904c6d21ba1 or later.

### How do I check if I'm affected by CVE-2023-53699?

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/a4284246fca2ef482a8fcf5ad7d2c33a45b41e9c>
- other: <https://git.kernel.org/stable/c/0a1b80ff4f721c4be98707bfe9d20238df133eb8>
- other: <https://git.kernel.org/stable/c/ba11f4e59509538810e5c44578fc73984acdf1d7>
- other: <https://git.kernel.org/stable/c/85fadc0d04119c2fe4a20287767ab904c6d21ba1>

## 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-2023-53699>

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