# CVE-2025-68198: crash: fix crashkernel resource shrink

> 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-12-16T13:48:26.998Z
- **Modified:** 2026-10-14T13:10:00.187Z

## Who should check

- Anyone running Linux \>= 16c6006af4d4e70ecef93977a5314409d931020b, \< f01f9c348d76d40bf104a94449e3ce4057fdefee; \>= 16c6006af4d4e70ecef93977a5314409d931020b, \< f89c5e7077f63e45e8ba5a77b7cf0803130367e6; \>= 16c6006af4d4e70ecef93977a5314409d931020b, \< a2bd247f8c6c5ac3f0ba823a2fffd77bb9cdf618; \>= 16c6006af4d4e70ecef93977a5314409d931020b, \< 00fbff75c5acb4755f06f08bd1071879c63940c5
- Anyone running Linux 6.5

## Description

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

crash: fix crashkernel resource shrink

When crashkernel is configured with a high reservation, shrinking its
value below the low crashkernel reservation causes two issues:

1. Invalid crashkernel resource objects
2. Kernel crash if crashkernel shrinking is done twice

For example, with crashkernel=200M,high, the kernel reserves 200MB of high
memory and some default low memory (say 256MB).  The reservation appears
as:

cat /proc/iomem \| grep -i crash
af000000-beffffff : Crash kernel
433000000-43f7fffff : Crash kernel

If crashkernel is then shrunk to 50MB (echo 52428800 \>
/sys/kernel/kexec\_crash\_size), /proc/iomem still shows 256MB reserved:
af000000-beffffff : Crash kernel

Instead, it should show 50MB:
af000000-b21fffff : Crash kernel

Further shrinking crashkernel to 40MB causes a kernel crash with the
following trace (x86):

BUG: kernel NULL pointer dereference, address: 0000000000000038
PGD 0 P4D 0
Oops: 0000 \[\#1\] PREEMPT SMP NOPTI
\<snip...\>
Call Trace: \<TASK\>
? \_\_die\_body.cold+0x19/0x27
? page\_fault\_oops+0x15a/0x2f0
? search\_module\_extables+0x19/0x60
? search\_bpf\_extables+0x5f/0x80
? exc\_page\_fault+0x7e/0x180
? asm\_exc\_page\_fault+0x26/0x30
? \_\_release\_resource+0xd/0xb0
release\_resource+0x26/0x40
\_\_crash\_shrink\_memory+0xe5/0x110
crash\_shrink\_memory+0x12a/0x190
kexec\_crash\_size\_store+0x41/0x80
kernfs\_fop\_write\_iter+0x141/0x1f0
vfs\_write+0x294/0x460
ksys\_write+0x6d/0xf0
\<snip...\>

This happens because \_\_crash\_shrink\_memory()/kernel/crash\_core.c
incorrectly updates the crashk\_res resource object even when
crashk\_low\_res should be updated.

Fix this by ensuring the correct crashkernel resource object is updated
when shrinking crashkernel memory.

## Affected and fixed versions

- Linux: \>= 16c6006af4d4e70ecef93977a5314409d931020b, \< f01f9c348d76d40bf104a94449e3ce4057fdefee; \>= 16c6006af4d4e70ecef93977a5314409d931020b, \< f89c5e7077f63e45e8ba5a77b7cf0803130367e6; \>= 16c6006af4d4e70ecef93977a5314409d931020b, \< a2bd247f8c6c5ac3f0ba823a2fffd77bb9cdf618; \>= 16c6006af4d4e70ecef93977a5314409d931020b, \< 00fbff75c5acb4755f06f08bd1071879c63940c5 (cvelist)
- Linux: 6.5 (cvelist)

## Mitigation

- Upgrade Linux to 00fbff75c5acb4755f06f08bd1071879c63940c5 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-68198.md
Affected: Linux >= 16c6006af4d4e70ecef93977a5314409d931020b, < f01f9c348d76d40bf104a94449e3ce4057fdefee; >= 16c6006af4d4e70ecef93977a5314409d931020b, < f89c5e7077f63e45e8ba5a77b7cf0803130367e6; >= 16c6006af4d4e70ecef93977a5314409d931020b, < a2bd247f8c6c5ac3f0ba823a2fffd77bb9cdf618; >= 16c6006af4d4e70ecef9397…
Fixed in: Linux 00fbff75c5acb4755f06f08bd1071879c63940c5

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-2025-68198 being exploited?

There is no confirmed exploitation: CVE-2025-68198 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-2025-68198?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-68198?

Linux \>= 16c6006af4d4e70ecef93977a5314409d931020b, \< f01f9c348d76d40bf104a94449e3ce4057fdefee; \>= 16c6006af4d4e70ecef93977a5314409d931020b, \< f89c5e7077f63e45e8ba5a77b7cf0803130367e6; \>= 16c6006af4d4e70ecef93977a5314409d931020b, \< a2bd247f8c6c5ac3f0ba823a2fffd77bb9cdf618; \>= 16c6006af4d4e70ecef93977a5314409d931020b, \< 00fbff75c5acb4755f06f08bd1071879c63940c5; Linux 6.5.

### Is there a fix for CVE-2025-68198?

Yes. Fixed in Linux 00fbff75c5acb4755f06f08bd1071879c63940c5. Upgrade Linux to 00fbff75c5acb4755f06f08bd1071879c63940c5 or later.

### How do I check if I'm affected by CVE-2025-68198?

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/f01f9c348d76d40bf104a94449e3ce4057fdefee>
- other: <https://git.kernel.org/stable/c/f89c5e7077f63e45e8ba5a77b7cf0803130367e6>
- other: <https://git.kernel.org/stable/c/a2bd247f8c6c5ac3f0ba823a2fffd77bb9cdf618>
- other: <https://git.kernel.org/stable/c/00fbff75c5acb4755f06f08bd1071879c63940c5>

## 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-2025-68198>

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