# CVE-2024-50303: resource,kexec: walk\_system\_ram\_res\_rev must retain resource flags

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **Published:** 2024-11-19T17:19:29.585Z
- **Modified:** 2026-06-17T08:04:10.663Z

## Who should check

- Anyone running Linux \>= 7acf164b259d9007264d9d8501da1023f140a3b4, \< dc9031b7919bd346514ea9a720f433b8daf3970d; \>= 7acf164b259d9007264d9d8501da1023f140a3b4, \< b125a0def25a082ae944c9615208bf359abdb61c
- Anyone running Linux 6.8

## Description

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

resource,kexec: walk\_system\_ram\_res\_rev must retain resource flags

walk\_system\_ram\_res\_rev() erroneously discards resource flags when passing
the information to the callback.

This causes systems with IORESOURCE\_SYSRAM\_DRIVER\_MANAGED memory to have
these resources selected during kexec to store kexec buffers if that
memory happens to be at placed above normal system ram.

This leads to undefined behavior after reboot.  If the kexec buffer is
never touched, nothing happens.  If the kexec buffer is touched, it could
lead to a crash (like below) or undefined behavior.

Tested on a system with CXL memory expanders with driver managed memory,
TPM enabled, and CONFIG\_IMA\_KEXEC=y.  Adding printk's showed the flags
were being discarded and as a result the check for
IORESOURCE\_SYSRAM\_DRIVER\_MANAGED passes.

find\_next\_iomem\_res: name(System RAM (kmem))
		     start(10000000000)
		     end(1034fffffff)
		     flags(83000200)

locate\_mem\_hole\_top\_down: start(10000000000) end(1034fffffff) flags(0)

\[.\] BUG: unable to handle page fault for address: ffff89834ffff000
\[.\] \#PF: supervisor read access in kernel mode
\[.\] \#PF: error\_code(0x0000) - not-present page
\[.\] PGD c04c8bf067 P4D c04c8bf067 PUD c04c8be067 PMD 0
\[.\] Oops: 0000 \[\#1\] SMP
\[.\] RIP: 0010:ima\_restore\_measurement\_list+0x95/0x4b0
\[.\] RSP: 0018:ffffc900000d3a80 EFLAGS: 00010286
\[.\] RAX: 0000000000001000 RBX: 0000000000000000 RCX: ffff89834ffff000
\[.\] RDX: 0000000000000018 RSI: ffff89834ffff000 RDI: ffff89834ffff018
\[.\] RBP: ffffc900000d3ba0 R08: 0000000000000020 R09: ffff888132b8a900
\[.\] R10: 4000000000000000 R11: 000000003a616d69 R12: 0000000000000000
\[.\] R13: ffffffff8404ac28 R14: 0000000000000000 R15: ffff89834ffff000
\[.\] FS:  0000000000000000(0000) GS:ffff893d44640000(0000) knlGS:0000000000000000
\[.\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[.\] ata5: SATA link down (SStatus 0 SControl 300)
\[.\] CR2: ffff89834ffff000 CR3: 000001034d00f001 CR4: 0000000000770ef0
\[.\] PKRU: 55555554
\[.\] Call Trace:
\[.\]  \<TASK\>
\[.\]  ? \_\_die+0x78/0xc0
\[.\]  ? page\_fault\_oops+0x2a8/0x3a0
\[.\]  ? exc\_page\_fault+0x84/0x130
\[.\]  ? asm\_exc\_page\_fault+0x22/0x30
\[.\]  ? ima\_restore\_measurement\_list+0x95/0x4b0
\[.\]  ? template\_desc\_init\_fields+0x317/0x410
\[.\]  ? crypto\_alloc\_tfm\_node+0x9c/0xc0
\[.\]  ? init\_ima\_lsm+0x30/0x30
\[.\]  ima\_load\_kexec\_buffer+0x72/0xa0
\[.\]  ima\_init+0x44/0xa0
\[.\]  \_\_initstub\_\_kmod\_ima\_\_373\_1201\_init\_ima7+0x1e/0xb0
\[.\]  ? init\_ima\_lsm+0x30/0x30
\[.\]  do\_one\_initcall+0xad/0x200
\[.\]  ? idr\_alloc\_cyclic+0xaa/0x110
\[.\]  ? new\_slab+0x12c/0x420
\[.\]  ? new\_slab+0x12c/0x420
\[.\]  ? number+0x12a/0x430
\[.\]  ? sysvec\_apic\_timer\_interrupt+0xa/0x80
\[.\]  ? asm\_sysvec\_apic\_timer\_interrupt+0x16/0x20
\[.\]  ? parse\_args+0xd4/0x380
\[.\]  ? parse\_args+0x14b/0x380
\[.\]  kernel\_init\_freeable+0x1c1/0x2b0
\[.\]  ? rest\_init+0xb0/0xb0
\[.\]  kernel\_init+0x16/0x1a0
\[.\]  ret\_from\_fork+0x2f/0x40
\[.\]  ? rest\_init+0xb0/0xb0
\[.\]  ret\_from\_fork\_asm+0x11/0x20
\[.\]  \</TASK\>

## Affected and fixed versions

- Linux: \>= 7acf164b259d9007264d9d8501da1023f140a3b4, \< dc9031b7919bd346514ea9a720f433b8daf3970d; \>= 7acf164b259d9007264d9d8501da1023f140a3b4, \< b125a0def25a082ae944c9615208bf359abdb61c (cvelist)
- Linux: 6.8 (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-2024-50303. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-50303.md
Affected: Linux >= 7acf164b259d9007264d9d8501da1023f140a3b4, < dc9031b7919bd346514ea9a720f433b8daf3970d; >= 7acf164b259d9007264d9d8501da1023f140a3b4, < b125a0def25a082ae944c9615208bf359abdb61c; Linux 6.8
Fixed in: no fixed version listed yet

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-2024-50303 being exploited?

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

### How serious is CVE-2024-50303?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-50303?

Linux \>= 7acf164b259d9007264d9d8501da1023f140a3b4, \< dc9031b7919bd346514ea9a720f433b8daf3970d; \>= 7acf164b259d9007264d9d8501da1023f140a3b4, \< b125a0def25a082ae944c9615208bf359abdb61c; Linux 6.8.

### Is there a fix for CVE-2024-50303?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-50303?

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

- patch: <https://git.kernel.org/stable/c/dc9031b7919bd346514ea9a720f433b8daf3970d>
- patch: <https://git.kernel.org/stable/c/b125a0def25a082ae944c9615208bf359abdb61c>

## 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-2024-50303>

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