# CVE-2023-53341: of/fdt: run soc memory setup when early_init_dt_scan_memory fails

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-02)
- Published: 2025-09-17T14:56:34.671Z
- Modified: 2026-06-17T06:44:56.580Z
- Weaknesses: CWE-908
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

of/fdt: run soc memory setup when early_init_dt_scan_memory fails

If memory has been found early_init_dt_scan_memory now returns 1. If
it hasn't found any memory it will return 0, allowing other memory
setup mechanisms to carry on.

Previously early_init_dt_scan_memory always returned 0 without
distinguishing between any kind of memory setup being done or not. Any
code path after the early_init_dt_scan memory call in the ramips
plat_mem_setup code wouldn't be executed anymore. Making
early_init_dt_scan_memory the only way to initialize the memory.

Some boards, including my mt7621 based Cudy X6 board, depend on memory
initialization being done via the soc_info.mem_detect function
pointer. Those wouldn't be able to obtain memory and panic the kernel
during early bootup with the message "early_init_dt_alloc_memory_arch:
Failed to allocate 12416 bytes align=0x40".

(As written by CVE List.)

## Affected

- Linux Linux: from 1f012283e9360fb4007308f04cfaeb205e34b684 before 04836fc5b720dfa32ff781383d84f63019abf9b9; from 1f012283e9360fb4007308f04cfaeb205e34b684 before c4849f18185fd4e93b04cd45552f8d68c0240e21; from 1f012283e9360fb4007308f04cfaeb205e34b684 before 2a12187d5853d9fd5102278cecef7dac7c8ce7ea; 5.17 (not affected: before 5.17; from 6.0.19 up to 6.0.*; from 6.1.5 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 5.17 before 6.0.19; from 6.1 before 6.1.5; 6.2

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/04836fc5b720dfa32ff781383d84f63019abf9b9> (patch)
- <https://git.kernel.org/stable/c/c4849f18185fd4e93b04cd45552f8d68c0240e21> (patch)
- <https://git.kernel.org/stable/c/2a12187d5853d9fd5102278cecef7dac7c8ce7ea> (patch)

## Sources

- CVE List: [CVE-2023-53341](https://www.cve.org/CVERecord?id=CVE-2023-53341), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-53341](https://nvd.nist.gov/vuln/detail/CVE-2023-53341), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53341 · Whole record: https://cve.day/CVE-2023-53341.json · Rebuilt by cve.day 2026-11-25T22:58:34.839Z
