CVE-2025-38048

Source
https://cve.org/CVERecord?id=CVE-2025-38048
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38048.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38048
Downstream
Published
2025-06-18T09:33:31.413Z
Modified
2026-03-09T23:54:07.402167Z
Summary
virtio_ring: Fix data race by tagging event_triggered as racy for KCSAN
Details

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

virtioring: Fix data race by tagging eventtriggered as racy for KCSAN

syzbot reports a data-race when accessing the event_triggered, here is the simplified stack when the issue occurred:

================================================================== BUG: KCSAN: data-race in virtqueuedisablecb / virtqueueenablecb_delayed

write to 0xffff8881025bc452 of 1 bytes by task 3288 on cpu 0: virtqueueenablecbdelayed+0x42/0x3c0 drivers/virtio/virtioring.c:2653 startxmit+0x230/0x1310 drivers/net/virtionet.c:3264 _netdevstartxmit include/linux/netdevice.h:5151 [inline] netdevstartxmit include/linux/netdevice.h:5160 [inline] xmitone net/core/dev.c:3800 [inline]

read to 0xffff8881025bc452 of 1 bytes by interrupt on cpu 1: virtqueuedisablecbsplit drivers/virtio/virtioring.c:880 [inline] virtqueuedisablecb+0x92/0x180 drivers/virtio/virtioring.c:2566 skbxmitdone+0x5f/0x140 drivers/net/virtionet.c:777 vringinterrupt+0x161/0x190 drivers/virtio/virtioring.c:2715 __handleirqeventpercpu+0x95/0x490 kernel/irq/handle.c:158 handleirqeventpercpu kernel/irq/handle.c:193 [inline]

value changed: 0x01 -> 0x00

When the data race occurs, the function virtqueueenablecbdelayed() sets eventtriggered to false, and virtqueuedisablecbsplit/packed() reads it as false due to the race condition. Since eventtriggered is an unreliable hint used for optimization, this should only cause the driver temporarily suggest that the device not send an interrupt notification when the event index is used.

Fix this KCSAN reported data-race issue by explicitly tagging the access as data_racy.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38048.json"
}
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
8d622d21d24803408b256d96463eac4574dcf067
Fixed
02d2d6caee3abc9335cfca35f8eb4492173ae6f2
Fixed
b6d6419548286b2b9d2b90df824d3cab797f6ae8
Fixed
b49b5132e4c7307599492aee1cdc6d89f7f2a7da
Fixed
b730cb109633c455ce8a7cd6934986c6a16d88d8
Fixed
4ed8f0e808b3fcc71c5b8be7902d8738ed595b17
Fixed
2e2f925fe737576df2373931c95e1a2b66efdfef

Database specific

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