# CVE-2023-54241: MIPS: KVM: Fix NULL pointer dereference

> 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.26% (percentile 11, 2026-11-26)
- **Published:** 2025-12-30T12:11:29.726Z
- **Modified:** 2026-06-17T06:47:04.593Z

## Who should check

- Anyone running Linux \>= 45c7e8af4a5e3f0bea4ac209eea34118dd57ac64, \< cd517f9a9d07d41f4f3593b1da3982261e09d162; \>= 45c7e8af4a5e3f0bea4ac209eea34118dd57ac64, \< bd9cf2a5f9e1b2229ad22f21de6f6ad1a9c8858e; \>= 45c7e8af4a5e3f0bea4ac209eea34118dd57ac64, \< 6b9fb255d53759e3ea9b30067cb55091df1caf06; \>= 45c7e8af4a5e3f0bea4ac209eea34118dd57ac64, \< e4de2057698636c0ee709e545d19b169d2069fa3
- Anyone running Linux 5.13

## Description

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

MIPS: KVM: Fix NULL pointer dereference

After commit 45c7e8af4a5e3f0bea4ac209 ("MIPS: Remove KVM\_TE support") we
get a NULL pointer dereference when creating a KVM guest:

\[  146.243409\] Starting KVM with MIPS VZ extensions
\[  149.849151\] CPU 3 Unable to handle kernel paging request at virtual address 0000000000000300, epc == ffffffffc06356ec, ra == ffffffffc063568c
\[  149.849177\] Oops\[\#1\]:
\[  149.849182\] CPU: 3 PID: 2265 Comm: qemu-system-mip Not tainted 6.4.0-rc3+ \#1671
\[  149.849188\] Hardware name: THTF CX TL630 Series/THTF-LS3A4000-7A1000-ML4A, BIOS KL4.1F.TF.D.166.201225.R 12/25/2020
\[  149.849192\] $ 0   : 0000000000000000 000000007400cce0 0000000000400004 ffffffff8119c740
\[  149.849209\] $ 4   : 000000007400cce1 000000007400cce1 0000000000000000 0000000000000000
\[  149.849221\] $ 8   : 000000240058bb36 ffffffff81421ac0 0000000000000000 0000000000400dc0
\[  149.849233\] $12   : 9800000102a07cc8 ffffffff80e40e38 0000000000000001 0000000000400dc0
\[  149.849245\] $16   : 0000000000000000 9800000106cd0000 9800000106cd0000 9800000100cce000
\[  149.849257\] $20   : ffffffffc0632b28 ffffffffc05b31b0 9800000100ccca00 0000000000400000
\[  149.849269\] $24   : 9800000106cd09ce ffffffff802f69d0
\[  149.849281\] $28   : 9800000102a04000 9800000102a07cd0 98000001106a8000 ffffffffc063568c
\[  149.849293\] Hi    : 00000335b2111e66
\[  149.849295\] Lo    : 6668d90061ae0ae9
\[  149.849298\] epc   : ffffffffc06356ec kvm\_vz\_vcpu\_setup+0xc4/0x328 \[kvm\]
\[  149.849324\] ra    : ffffffffc063568c kvm\_vz\_vcpu\_setup+0x64/0x328 \[kvm\]
\[  149.849336\] Status: 7400cce3 KX SX UX KERNEL EXL IE
\[  149.849351\] Cause : 1000000c (ExcCode 03)
\[  149.849354\] BadVA : 0000000000000300
\[  149.849357\] PrId  : 0014c004 (ICT Loongson-3)
\[  149.849360\] Modules linked in: kvm nfnetlink\_queue nfnetlink\_log nfnetlink fuse sha256\_generic libsha256 cfg80211 rfkill binfmt\_misc vfat fat snd\_hda\_codec\_hdmi input\_leds led\_class snd\_hda\_intel snd\_intel\_dspcfg snd\_hda\_codec snd\_hda\_core snd\_pcm snd\_timer snd serio\_raw xhci\_pci radeon drm\_suballoc\_helper drm\_display\_helper xhci\_hcd ip\_tables x\_tables
\[  149.849432\] Process qemu-system-mip (pid: 2265, threadinfo=00000000ae2982d2, task=0000000038e09ad4, tls=000000ffeba16030)
\[  149.849439\] Stack : 9800000000000003 9800000100ccca00 9800000100ccc000 ffffffffc062cef4
\[  149.849453\]         9800000102a07d18 c89b63a7ab338e00 0000000000000000 ffffffff811a0000
\[  149.849465\]         0000000000000000 9800000106cd0000 ffffffff80e59938 98000001106a8920
\[  149.849476\]         ffffffff80e57f30 ffffffffc062854c ffffffff811a0000 9800000102bf4240
\[  149.849488\]         ffffffffc05b0000 ffffffff80e3a798 000000ff78000000 000000ff78000010
\[  149.849500\]         0000000000000255 98000001021f7de0 98000001023f0078 ffffffff81434000
\[  149.849511\]         0000000000000000 0000000000000000 9800000102ae0000 980000025e92ae28
\[  149.849523\]         0000000000000000 c89b63a7ab338e00 0000000000000001 ffffffff8119dce0
\[  149.849535\]         000000ff78000010 ffffffff804f3d3c 9800000102a07eb0 0000000000000255
\[  149.849546\]         0000000000000000 ffffffff8049460c 000000ff78000010 0000000000000255
\[  149.849558\]         ...
\[  149.849565\] Call Trace:
\[  149.849567\] \[\<ffffffffc06356ec\>\] kvm\_vz\_vcpu\_setup+0xc4/0x328 \[kvm\]
\[  149.849586\] \[\<ffffffffc062cef4\>\] kvm\_arch\_vcpu\_create+0x184/0x228 \[kvm\]
\[  149.849605\] \[\<ffffffffc062854c\>\] kvm\_vm\_ioctl+0x64c/0xf28 \[kvm\]
\[  149.849623\] \[\<ffffffff805209c0\>\] sys\_ioctl+0xc8/0x118
\[  149.849631\] \[\<ffffffff80219eb0\>\] syscall\_common+0x34/0x58

The root cause is the deletion of kvm\_mips\_commpage\_init() leaves vcpu
-\>arch.cop0 NULL. So fix it by making cop0 from a pointer to an embedded
object.

## Affected and fixed versions

- Linux: \>= 45c7e8af4a5e3f0bea4ac209eea34118dd57ac64, \< cd517f9a9d07d41f4f3593b1da3982261e09d162; \>= 45c7e8af4a5e3f0bea4ac209eea34118dd57ac64, \< bd9cf2a5f9e1b2229ad22f21de6f6ad1a9c8858e; \>= 45c7e8af4a5e3f0bea4ac209eea34118dd57ac64, \< 6b9fb255d53759e3ea9b30067cb55091df1caf06; \>= 45c7e8af4a5e3f0bea4ac209eea34118dd57ac64, \< e4de2057698636c0ee709e545d19b169d2069fa3 (cvelist)
- Linux: 5.13 (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-2023-54241. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54241.md
Affected: Linux >= 45c7e8af4a5e3f0bea4ac209eea34118dd57ac64, < cd517f9a9d07d41f4f3593b1da3982261e09d162; >= 45c7e8af4a5e3f0bea4ac209eea34118dd57ac64, < bd9cf2a5f9e1b2229ad22f21de6f6ad1a9c8858e; >= 45c7e8af4a5e3f0bea4ac209eea34118dd57ac64, < 6b9fb255d53759e3ea9b30067cb55091df1caf06; >= 45c7e8af4a5e3f0bea4ac20…
Fixed in: Linux 6b9fb255d53759e3ea9b30067cb55091df1caf06

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-54241 being exploited?

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

It has no CVSS score yet. Unknown.

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

Linux \>= 45c7e8af4a5e3f0bea4ac209eea34118dd57ac64, \< cd517f9a9d07d41f4f3593b1da3982261e09d162; \>= 45c7e8af4a5e3f0bea4ac209eea34118dd57ac64, \< bd9cf2a5f9e1b2229ad22f21de6f6ad1a9c8858e; \>= 45c7e8af4a5e3f0bea4ac209eea34118dd57ac64, \< 6b9fb255d53759e3ea9b30067cb55091df1caf06; \>= 45c7e8af4a5e3f0bea4ac209eea34118dd57ac64, \< e4de2057698636c0ee709e545d19b169d2069fa3; Linux 5.13.

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

Yes. Fixed in Linux 6b9fb255d53759e3ea9b30067cb55091df1caf06. No fix listed yet: follow the vendor advisory.

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

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/cd517f9a9d07d41f4f3593b1da3982261e09d162>
- other: <https://git.kernel.org/stable/c/bd9cf2a5f9e1b2229ad22f21de6f6ad1a9c8858e>
- other: <https://git.kernel.org/stable/c/6b9fb255d53759e3ea9b30067cb55091df1caf06>
- other: <https://git.kernel.org/stable/c/e4de2057698636c0ee709e545d19b169d2069fa3>

## 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-54241>

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