Skip to contentSkip to conversation

CVE-2026-99299: media: em28xx: reject audio endpoint with zero packet size

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 16

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

media: em28xx: reject audio endpoint with zero packet size

em28xx_audio_urb_init() divides by the audio endpoint's wMaxPacketSize without checking it, so a USB device that declares a zero-sized audio endpoint divides by zero at probe time.

Reject a zero-sized audio endpoint like a missing one; the caller already unwinds on a negative return.

  Oops: divide error: 0000 [#1] SMP NOPTI
  Workqueue: usb_hub_wq hub_event
  RIP: 0010:em28xx_audio_init (drivers/media/usb/em28xx/em28xx-audio.c:718)
  Call Trace:
   em28xx_init_extension (drivers/media/usb/em28xx/em28xx-core.c:1248)
   em28xx_init_dev.isra.0 (drivers/media/usb/em28xx/em28xx-cards.c:3887)
   em28xx_usb_probe (drivers/media/usb/em28xx/em28xx-cards.c:4258)
   usb_probe_interface (drivers/usb/core/driver.c:396)
   ...
   usb_set_configuration (drivers/usb/core/message.c:2268)
   usb_generic_driver_probe (drivers/usb/core/generic.c:250)
   usb_probe_device (drivers/usb/core/driver.c:291)
   ...
   usb_new_device (drivers/usb/core/hub.c:2703)
   hub_event (drivers/usb/core/hub.c:5961)
   process_one_work (kernel/workqueue.c:3322)
   worker_thread (kernel/workqueue.c:3486)
   kthread (kernel/kthread.c:436)
   ret_from_fork (arch/x86/kernel/process.c:158)
   ret_from_fork_asm (arch/x86/entry/entry_64.S:245)
  Kernel panic - not syncing: Fatal exception

The Linux kernel CVE team has assigned CVE-2026-99299 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 3.14 with commit 1b3fd2d342667005855deae74200195695433259 and fixed in 6.12.117 with commit ffafe6ecce8794ed821689b874964da3ab9d0869
	Issue introduced in 3.14 with commit 1b3fd2d342667005855deae74200195695433259 and fixed in 6.18.61 with commit dc0072c1b40fc376c6cbe821de947f3744ab254b
	Issue introduced in 3.14 with commit 1b3fd2d342667005855deae74200195695433259 and fixed in 7.3.2 with commit e282da1201f16ff75b95f85cc0b0c1de7ff59731
	Issue introduced in 3.14 with commit 1b3fd2d342667005855deae74200195695433259 and fixed in 7.4-rc1 with commit aebfe430ba885d2f8fc882d7a6d60a7fdbe535d8

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-99299

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:

	drivers/media/usb/em28xx/em28xx-audio.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/ffafe6ecce8794ed821689b874964da3ab9d0869
	https://git.kernel.org/stable/c/dc0072c1b40fc376c6cbe821de947f3744ab254b
	https://git.kernel.org/stable/c/e282da1201f16ff75b95f85cc0b0c1de7ff59731
	https://git.kernel.org/stable/c/aebfe430ba885d2f8fc882d7a6d60a7fdbe535d8