CVE-2023-54173: bpf: Disable preemption in bpf_event_output

Published Dec 30, 2025
·
Updated

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

bpf: Disable preemption in bpfeventoutput

We received report [1] of kernel crash, which is caused by using nesting protection without disabled preemption.

The bpfeventoutput can be called by programs executed by bpfprogrunarraycg function that disabled migration but keeps preemption enabled.

This can cause task to be preempted by another one inside the nesting protection and lead eventually to two tasks using same perfsampledata buffer and cause crashes like:

BUG: kernel NULL pointer dereference, address: 0000000000000001 #PF: supervisor instruction fetch in kernel mode #PF: errorcode(0x0010) - not-present page ... ? perfoutputsample+0x12a/0x9a0 ? finishtaskswitch.isra.0+0x81/0x280 ? perfeventoutput+0x66/0xa0 ? bpfeventoutput+0x13a/0x190 ? bpfeventoutputdata+0x22/0x40 ? bpfprogdfc84bbde731b257cilsock4connect+0x40a/0xacb ? xaload+0x87/0xe0 ? cgroupbpfrunfiltersockaddr+0xc1/0x1a0 ? releasesock+0x3e/0x90 ? sksetsockopt+0x1a1/0x12f0 ? udppreconnect+0x36/0x50 ? inetdgramconnect+0x93/0xa0 ? sysconnect+0xb4/0xe0 ? udpsetsockopt+0x27/0x40 ? pfxudppushpendingframes+0x10/0x10 ? syssetsockopt+0xdf/0x1a0 ? x64sysconnect+0xf/0x20 ? dosyscall64+0x3a/0x90 ? entrySYSCALL64afterhwframe+0x72/0xdc

Fixing this by disabling preemption in bpfeventoutput.

[1] https://github.com/cilium/cilium/issues/26756

Affected Software

1 affected component
linux/kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Apply the kernel fix for the described issue by disabling preemption in bpf_event_output (as referenced by the text: "Fixing this by disabling preemption in bpf_event_output" and "bpf: Disable preemption in bpf_event_output").

    Linux kernel (bpf_event_output) preemption in bpf_event_output = disabled

Event History

Dec 30, 2025
CVE Published
via MITRE·12:08 PM
Data Sourced
via MITRE·12:08 PM
DescriptionSeverity
Data Sourced
via NVD·01:16 PM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2023-54173?

CVE-2023-54173 has been classified as a moderate severity vulnerability.

2

How do I fix CVE-2023-54173?

To fix CVE-2023-54173, ensure you update the Linux kernel to the latest version that addresses this issue.

3

What versions of Linux kernel are affected by CVE-2023-54173?

CVE-2023-54173 affects various versions of the Linux kernel prior to the patch being applied.

4

What are the implications of CVE-2023-54173?

CVE-2023-54173 can lead to a kernel crash due to improper nesting protection when preemption is enabled.

5

Is there any workaround for CVE-2023-54173 before applying a fix?

There are no specific workarounds recommended for CVE-2023-54173, so updating the kernel is the best approach.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203