CVE-2023-54173

Source
https://cve.org/CVERecord?id=CVE-2023-54173
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54173.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-54173
Downstream
Related
Published
2025-12-30T12:08:46.842Z
Modified
2026-03-31T17:29:26.117308337Z
Summary
bpf: Disable preemption in bpf_event_output
Details

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 ? __cgroupbpfrun_filtersockaddr+0xc1/0x1a0 ? releasesock+0x3e/0x90 ? sksetsockopt+0x1a1/0x12f0 ? udppreconnect+0x36/0x50 ? inetdgramconnect+0x93/0xa0 ? __sysconnect+0xb4/0xe0 ? udpsetsockopt+0x27/0x40 ? __pfxudppushpendingframes+0x10/0x10 ? __sys_setsockopt+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

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54173.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
2a916f2f546ca1c1e3323e2a4269307f6d9890eb
Fixed
3048cb0dc0cc9dc74ed93690dffef00733bcad5b
Fixed
c81bdf8f9f2b002d217c3d5357cdea9f2b82ff90
Fixed
36dd8ca330b76585640ed32255a3c99f901e1502
Fixed
063c9ce8e74e07bf94f99cd13146f42867875e8b
Fixed
d62cc390c2e99ae267ffe4b8d7e2e08b6c758c32

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54173.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.7.0
Fixed
5.10.190
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.126
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.45
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.4.10

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54173.json"