# CVE-2024-53687: riscv: Fix IPIs usage in kfence\_protect\_page()

> 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, NVD) `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.29% (percentile 15, 2026-11-26)
- **Published:** 2025-01-11T12:29:50.589Z
- **Modified:** 2026-06-17T08:09:06.133Z

## Who should check

- Anyone running Linux \>= 47513f243b452a5e21180dcf3d6ac1c57e1781a6, \< 6f796a6a396d6f963f2cc8f5edd7dfba2cca097f; \>= 47513f243b452a5e21180dcf3d6ac1c57e1781a6, \< 3abfc4130c4222099c69d023fed97f1180a8ad7b; \>= 47513f243b452a5e21180dcf3d6ac1c57e1781a6, \< b3431a8bb336cece8adc452437befa7d4534b2fd
- Anyone running Linux 5.14

## Description

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

riscv: Fix IPIs usage in kfence\_protect\_page()

flush\_tlb\_kernel\_range() may use IPIs to flush the TLBs of all the
cores, which triggers the following warning when the irqs are disabled:

\[    3.455330\] WARNING: CPU: 1 PID: 0 at kernel/smp.c:815 smp\_call\_function\_many\_cond+0x452/0x520
\[    3.456647\] Modules linked in:
\[    3.457218\] CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 6.12.0-rc7-00010-g91d3de7240b8 \#1
\[    3.457416\] Hardware name: QEMU QEMU Virtual Machine, BIOS
\[    3.457633\] epc : smp\_call\_function\_many\_cond+0x452/0x520
\[    3.457736\]  ra : on\_each\_cpu\_cond\_mask+0x1e/0x30
\[    3.457786\] epc : ffffffff800b669a ra : ffffffff800b67c2 sp : ff2000000000bb50
\[    3.457824\]  gp : ffffffff815212b8 tp : ff6000008014f080 t0 : 000000000000003f
\[    3.457859\]  t1 : ffffffff815221e0 t2 : 000000000000000f s0 : ff2000000000bc10
\[    3.457920\]  s1 : 0000000000000040 a0 : ffffffff815221e0 a1 : 0000000000000001
\[    3.457953\]  a2 : 0000000000010000 a3 : 0000000000000003 a4 : 0000000000000000
\[    3.458006\]  a5 : 0000000000000000 a6 : ffffffffffffffff a7 : 0000000000000000
\[    3.458042\]  s2 : ffffffff815223be s3 : 00fffffffffff000 s4 : ff600001ffe38fc0
\[    3.458076\]  s5 : ff600001ff950d00 s6 : 0000000200000120 s7 : 0000000000000001
\[    3.458109\]  s8 : 0000000000000001 s9 : ff60000080841ef0 s10: 0000000000000001
\[    3.458141\]  s11: ffffffff81524812 t3 : 0000000000000001 t4 : ff60000080092bc0
\[    3.458172\]  t5 : 0000000000000000 t6 : ff200000000236d0
\[    3.458203\] status: 0000000200000100 badaddr: ffffffff800b669a cause: 0000000000000003
\[    3.458373\] \[\<ffffffff800b669a\>\] smp\_call\_function\_many\_cond+0x452/0x520
\[    3.458593\] \[\<ffffffff800b67c2\>\] on\_each\_cpu\_cond\_mask+0x1e/0x30
\[    3.458625\] \[\<ffffffff8000e4ca\>\] \_\_flush\_tlb\_range+0x118/0x1ca
\[    3.458656\] \[\<ffffffff8000e6b2\>\] flush\_tlb\_kernel\_range+0x1e/0x26
\[    3.458683\] \[\<ffffffff801ea56a\>\] kfence\_protect+0xc0/0xce
\[    3.458717\] \[\<ffffffff801e9456\>\] kfence\_guarded\_free+0xc6/0x1c0
\[    3.458742\] \[\<ffffffff801e9d6c\>\] \_\_kfence\_free+0x62/0xc6
\[    3.458764\] \[\<ffffffff801c57d8\>\] kfree+0x106/0x32c
\[    3.458786\] \[\<ffffffff80588cf2\>\] detach\_buf\_split+0x188/0x1a8
\[    3.458816\] \[\<ffffffff8058708c\>\] virtqueue\_get\_buf\_ctx+0xb6/0x1f6
\[    3.458839\] \[\<ffffffff805871da\>\] virtqueue\_get\_buf+0xe/0x16
\[    3.458880\] \[\<ffffffff80613d6a\>\] virtblk\_done+0x5c/0xe2
\[    3.458908\] \[\<ffffffff8058766e\>\] vring\_interrupt+0x6a/0x74
\[    3.458930\] \[\<ffffffff800747d8\>\] \_\_handle\_irq\_event\_percpu+0x7c/0xe2
\[    3.458956\] \[\<ffffffff800748f0\>\] handle\_irq\_event+0x3c/0x86
\[    3.458978\] \[\<ffffffff800786cc\>\] handle\_simple\_irq+0x9e/0xbe
\[    3.459004\] \[\<ffffffff80073934\>\] generic\_handle\_domain\_irq+0x1c/0x2a
\[    3.459027\] \[\<ffffffff804bf87c\>\] imsic\_handle\_irq+0xba/0x120
\[    3.459056\] \[\<ffffffff80073934\>\] generic\_handle\_domain\_irq+0x1c/0x2a
\[    3.459080\] \[\<ffffffff804bdb76\>\] riscv\_intc\_aia\_irq+0x24/0x34
\[    3.459103\] \[\<ffffffff809d0452\>\] handle\_riscv\_irq+0x2e/0x4c
\[    3.459133\] \[\<ffffffff809d923e\>\] call\_on\_irq\_stack+0x32/0x40

So only flush the local TLB and let the lazy kfence page fault handling
deal with the faults which could happen when a core has an old protected
pte version cached in its TLB. That leads to potential inaccuracies which
can be tolerated when using kfence.

## Affected and fixed versions

- Linux: \>= 47513f243b452a5e21180dcf3d6ac1c57e1781a6, \< 6f796a6a396d6f963f2cc8f5edd7dfba2cca097f; \>= 47513f243b452a5e21180dcf3d6ac1c57e1781a6, \< 3abfc4130c4222099c69d023fed97f1180a8ad7b; \>= 47513f243b452a5e21180dcf3d6ac1c57e1781a6, \< b3431a8bb336cece8adc452437befa7d4534b2fd (cvelist)
- Linux: 5.14 (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-53687. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-53687.md
Affected: Linux >= 47513f243b452a5e21180dcf3d6ac1c57e1781a6, < 6f796a6a396d6f963f2cc8f5edd7dfba2cca097f; >= 47513f243b452a5e21180dcf3d6ac1c57e1781a6, < 3abfc4130c4222099c69d023fed97f1180a8ad7b; >= 47513f243b452a5e21180dcf3d6ac1c57e1781a6, < b3431a8bb336cece8adc452437befa7d4534b2fd; Linux 5.14
Fixed in: Linux 6f796a6a396d6f963f2cc8f5edd7dfba2cca097f, Linux 3abfc4130c4222099c69d023fed97f1180a8ad7b

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

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

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

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

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

Linux \>= 47513f243b452a5e21180dcf3d6ac1c57e1781a6, \< 6f796a6a396d6f963f2cc8f5edd7dfba2cca097f; \>= 47513f243b452a5e21180dcf3d6ac1c57e1781a6, \< 3abfc4130c4222099c69d023fed97f1180a8ad7b; \>= 47513f243b452a5e21180dcf3d6ac1c57e1781a6, \< b3431a8bb336cece8adc452437befa7d4534b2fd; Linux 5.14.

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

Yes. Fixed in Linux 6f796a6a396d6f963f2cc8f5edd7dfba2cca097f, Linux 3abfc4130c4222099c69d023fed97f1180a8ad7b. No fix listed yet: follow the vendor advisory.

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

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/6f796a6a396d6f963f2cc8f5edd7dfba2cca097f>
- patch: <https://git.kernel.org/stable/c/3abfc4130c4222099c69d023fed97f1180a8ad7b>
- patch: <https://git.kernel.org/stable/c/b3431a8bb336cece8adc452437befa7d4534b2fd>

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

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