media: streamzap: fix race between device disconnection and urb callback
In the Linux kernel, the following vulnerability has been resolved: media: streamzap: fix race between device disconnection and urb callback Syzkaller has reported a general protection fault at function ir_raw_event_store_with_filter(). This crash is caused by a NULL pointer dereference of dev->raw pointer, even though it is checked for NULL in the same function, which means there is a race condition. It occurs due to the incorrect order of actions in the streamzap_disconnect() function: rc_unregister_device() is called before usb_kill_urb(). The dev->raw pointer is freed and set to NULL in rc_unregister_device(), and only after that usb_kill_urb() waits for in-progress requests to finish. If rc_unregister_device() is called while streamzap_callback() handler is not finished, this can lead to accessing freed resources. Thus rc_unregister_device() should be called after usb_kill_urb(). Found by Linux Verification Center (linuxtesting.org) with Syzkaller.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.237, 5.15.181, 6.1.134, 6.12.23, 6.13.11, 6.14.2, 6.6.87
- CVEs
- CVE-2025-22027
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 15:45 UTC · Revision 1
Source evidence
media: streamzap: fix race between device disconnection and urb callback
core-osv · Original sourcePublished 16 Apr 2025, 14:11 UTC
In the Linux kernel, the following vulnerability has been resolved: media: streamzap: fix race between device disconnection and urb callback Syzkaller has reported a general protection fault at function ir_raw_event_store_with_filter(). This crash is caused by a NULL pointer dereference of dev->raw pointer, even though it is checked for NULL in the same function, which means there is a race condition. It occurs due to the incorrect order of actions in the streamzap_disconnect() function: rc_unregister_device() is called before usb_kill_urb(). The dev->raw pointer is freed and set to NULL in rc_unregister_device(), and only after that usb_kill_urb() waits for in-progress requests to finish. If rc_unregister_device() is called while streamzap_callback() handler is not finished, this can lead to accessing freed resources. Thus rc_unregister_device() should be called after usb_kill_urb(). Found by Linux Verification Center (linuxtesting.org) with Syzkaller.
osv:CVE-2025-22027
Kernel
Fixed versions: 5.10.237, 5.15.181, 6.1.134, 6.6.87, 6.12.23, 6.13.11, 6.14.2
Complete source record
{
"id": "30e21fd808f50395db07a83d46eea0c2c9f7223a528e7d8c8b77349130984bbd",
"url": "https://osv.dev/vulnerability/CVE-2025-22027",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "media: streamzap: fix race between device disconnection and urb callback",
"summary": "In the Linux kernel, the following vulnerability has been resolved: media: streamzap: fix race between device disconnection and urb callback Syzkaller has reported a general protection fault at function ir_raw_event_store_with_filter(). This crash is caused by a NULL pointer dereference of dev->raw pointer, even though it is checked for NULL in the same function, which means there is a race condition. It occurs due to the incorrect order of actions in the streamzap_disconnect() function: rc_unregister_device() is called before usb_kill_urb(). The dev->raw pointer is freed and set to NULL in rc_unregister_device(), and only after that usb_kill_urb() waits for in-progress requests to finish. If rc_unregister_device() is called while streamzap_callback() handler is not finished, this can lead to accessing freed resources. Thus rc_unregister_device() should be called after usb_kill_urb(). Found by Linux Verification Center (linuxtesting.org) with Syzkaller.",
"evidence": "osv:CVE-2025-22027",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.237",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.181",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.134",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.87",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.23",
"evidence": "/affected/1/ranges"
},
{
"value": "6.13.11",
"evidence": "/affected/1/ranges"
},
{
"value": "6.14.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "CVE-2025-22027",
"aliases": [
"CVE-2025-22027"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "8e9e60640067858e8036d4d43bbf725c60613359"
},
{
"fixed": "e11652a6514ec805440c1bb3739e6c6236fffcc7"
},
{
"fixed": "f1d518c0bad01abe83c2df880274cb6a39f4a457"
},
{
"fixed": "30ef7cfee752ca318d5902cb67b60d9797ccd378"
},
{
"fixed": "15483afb930fc2f883702dc96f80efbe4055235e"
},
{
"fixed": "adf0ddb914c9e5b3e50da4c97959e82de2df75c3"
},
{
"fixed": "4db62b60af2ccdea6ac5452fd20e29587ed85f57"
},
{
"fixed": "8760da4b9d44c36b93b6e4cf401ec7fe520015bd"
},
{
"fixed": "f656cfbc7a293a039d6a0c7100e1c846845148c1"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-22027.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.6.36"
},
{
"fixed": "5.10.237"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.181"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.134"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.87"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.23"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.13.11"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.14.0"
},
{
"fixed": "6.14.2"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-22027.json"
}
}
],
"modified": "2026-10-28T02:30:30.310665311Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/15483afb930fc2f883702dc96f80efbe4055235e",
"https://git.kernel.org/stable/c/30ef7cfee752ca318d5902cb67b60d9797ccd378",
"https://git.kernel.org/stable/c/4db62b60af2ccdea6ac5452fd20e29587ed85f57",
"https://git.kernel.org/stable/c/8760da4b9d44c36b93b6e4cf401ec7fe520015bd",
"https://git.kernel.org/stable/c/adf0ddb914c9e5b3e50da4c97959e82de2df75c3",
"https://git.kernel.org/stable/c/e11652a6514ec805440c1bb3739e6c6236fffcc7",
"https://git.kernel.org/stable/c/f1d518c0bad01abe83c2df880274cb6a39f4a457",
"https://git.kernel.org/stable/c/f656cfbc7a293a039d6a0c7100e1c846845148c1",
"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html",
"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22027.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-22027",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22027.json"
}
},
"related_cves": [
{
"value": "CVE-2025-22027",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 496963,
"published_at": "2025-04-16T14:11:48.21+00:00"
}