{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99510","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.419Z","datePublished":"2026-11-19T14:44:06.436Z","dateUpdated":"2026-11-22T11:08:42.265Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-22T11:08:42.265Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: hackrf: fix use-after-free in hackrf_alloc_urbs() error path\n\nhackrf_alloc_urbs() frees the URBs it allocated so far when one\nallocation fails, but leaves the entries in dev->urb_list[] and\ndev->urbs_initialized untouched. The caller, hackrf_start_streaming(),\nthen calls hackrf_free_urbs() on the error path, which walks\ndev->urbs_initialized entries and calls usb_free_urb() a second time on\nthe already-freed URBs, causing a use-after-free (slab-use-after-free\nWrite in usb_free_urb()).\n\nDrop the redundant cleanup loop inside hackrf_alloc_urbs() and let\nhackrf_free_urbs(), which the caller already invokes on error, own the\ncleanup of the successfully allocated URBs."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - hackrf_alloc_urbs() is reached only from hackrf_start_streaming(), which vb2_start_streaming() runs for VIDIOC_STREAMON (vb2_ioctl_streamon) or read()/write() (vb2_fop_read/vb2_fop_write) on the /dev/swradio node from video_register_device() in hackrf_probe(). The double-free is that error path when usb_alloc_urb() returns NULL; no USB packet or remote message carries the bad input.\nAC:H - The second usb_free_urb() happens only if usb_alloc_urb(0, GFP_KERNEL) fails for a later index after at least one success, and only after hackrf_alloc_stream_bufs() has already allocated six 64KB coherent buffers. An order-0 GFP_KERNEL failure after those costly DMA allocations is not a state the caller can produce on demand.\nPR:L - hackrf_fops.open is v4l2_fh_open and the VIDIOC_STREAMON path has no capable() check, so the gate is permission to open /dev/swradioN. The kernel creates that node mode 0600 and video4linux udev grants it to the video group and the active seat, which a normal local user has, without CAP_SYS_ADMIN.\nUI:N - The same process that opens /dev/swradioN calls VIDIOC_STREAMON or read()/write() and thereby hackrf_start_streaming(). hackrf_probe() stops after CMD_BOARD_ID_READ and CMD_VERSION_STRING_READ and never calls hackrf_alloc_urbs().\nS:U - kref_put() in the second usb_free_urb() corrupts a freed struct urb inside the kernel that handled the V4L2 ioctl, the same security authority as the caller.\nC:H - hackrf_free_urbs() calls usb_free_urb() on urb_list entries that hackrf_alloc_urbs() already freed, and kref_put() writes that freed struct urb. The object contains kernel pointers (transfer_buffer, dev, complete); reclaiming the slab slot turns the use-after-free into a kernel memory read.\nI:H - The second kref_put() writes the kref at the start of the freed urb, and if a reclaim leaves that word at 1, urb_destroy() kfree()s the object again and kfree()s transfer_buffer when URB_FREE_BUFFER is set.\nA:H - That kref_put() is a slab use-after-free write in usb_free_urb(). It corrupts allocator metadata or hits refcount saturation on the freed urb and oopses the kernel."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/usb/hackrf/hackrf.c"],"versions":[{"version":"969ec1f6bd925092109eaf21501a9d64adfc7ad4","lessThan":"ed8d9b2015afd540f6159ed272702a87f02fbd05","status":"affected","versionType":"git"},{"version":"969ec1f6bd925092109eaf21501a9d64adfc7ad4","lessThan":"e9deece85062873763dfbb8b1121e722ef2959a0","status":"affected","versionType":"git"},{"version":"969ec1f6bd925092109eaf21501a9d64adfc7ad4","lessThan":"ba097d24c56bc3c57a1173506c3c5a42d0f94988","status":"affected","versionType":"git"},{"version":"969ec1f6bd925092109eaf21501a9d64adfc7ad4","lessThan":"6802ad4b6b267dda02209b5811edac7825c8a5f6","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/usb/hackrf/hackrf.c"],"versions":[{"version":"3.18","status":"affected"},{"version":"0","lessThan":"3.18","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.61","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.2","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.18","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.18","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.18","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.18","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/ed8d9b2015afd540f6159ed272702a87f02fbd05"},{"url":"https://git.kernel.org/stable/c/e9deece85062873763dfbb8b1121e722ef2959a0"},{"url":"https://git.kernel.org/stable/c/ba097d24c56bc3c57a1173506c3c5a42d0f94988"},{"url":"https://git.kernel.org/stable/c/6802ad4b6b267dda02209b5811edac7825c8a5f6"}],"title":"media: hackrf: fix use-after-free in hackrf_alloc_urbs() error path","x_generator":{"engine":"bippy-1.2.0"}}}}