A potential NULL pointer dereference vulnerability in the Linux kernel's USB serial io_edgeport driver was fixed. The issue involved marking the port as open before the write FIFO buffer was allocated and initialized, which could lead to a race condition where an interrupt completion attempts to send stale data and dereference a NULL FIFO pointer. The fix ensures the port is only marked open after the FIFO is properly set up.
A use-after-free vulnerability was fixed in the Linux kernel's USB serial io_edgeport driver. The issue occurred because asynchronous command URBs were not stopped on device disconnect, potentially leading to access of freed memory in the completion handler after the port was unbound. The fix involved adding an URB anchor to track and cancel outstanding command URBs on disconnect.
A vulnerability in the Linux kernel's USB xHCI driver was fixed to ensure the correct slot is disabled on device allocation failure. The issue involved improper handling of slot IDs during device allocation errors, which could cause the wrong slot to remain active or be disabled incorrectly.
A vulnerability in the Linux kernel's w1_therm driver caused it to incorrectly handle devices on the 1-wire bus that belong to other families. The bulk read operation assumed all slaves were temperature sensors and accessed family-specific data structures incorrectly, potentially corrupting data or causing malfunctions. This issue has been resolved by restricting the bulk read to only slaves of the appropriate family, allowing coexistence with other 1-wire devices on the same bus.
A vulnerability in the Linux kernel's IIO core for the bmg160 gyro sensor driver allows duplicate disable event requests to cause a runtime PM usage count underflow. This occurs because repeated disable requests improperly drop runtime PM references that were not acquired, leading to a warning and potential instability.
A use-after-free (UAF) race condition was identified and fixed in the Linux kernel's USB gadget MIDI function (f_midi) during IN request handling. The issue occurs because f_midi_disable() frees IN requests without holding the transmit lock, while concurrent transmit operations may access freed memory. Additionally, an error handling flaw in f_midi_do_transmit() could cause a transmit loop to spin indefinitely. The fix involves proper locking during request freeing and correct error propagation to abort transmission promptly.
A vulnerability in the Linux kernel's USB serial driver for io_edgeport could lead to potential FIFO memory corruption. This occurs because the driver lacked a sanity check when a malicious device sends a second open response with a different buffer size than initially expected. The issue has been fixed by adding the missing sanity check to prevent such memory corruption.
A NULL-pointer dereference vulnerability was fixed in the Linux kernel's io_edgeport USB serial driver. The issue occurred when a malicious USB device sent a status message for a port that had not yet been opened, causing a NULL-pointer dereference in the bulk-in completion handler. This was due to waitqueue initialization happening too late, which has been corrected by moving it from the open() function to port_probe().
A concurrency issue in the Linux kernel's w1 subsystem was resolved by ensuring the bus mutex is used for the "rw" file. Previously, the "rw" file did not use the bus mutex, leading to potential deadlocks and unsynchronized access to the bus. This could cause deadlocks during slave device detachment and allow concurrent transactions to interfere with each other.
A use-after-free vulnerability in the Linux kernel's USB gadget mass storage function (f_mass_storage) was fixed by ensuring proper locking when syncing the backing file. The flaw allowed a race condition where the backing file could be closed and freed while being accessed, causing a kernel memory corruption detected by KASAN.
A vulnerability in the Linux kernel's hid-sensor-humidity driver causes input reports from one humidity sensor to be incorrectly associated with another sensor's platform device. This occurs because the driver uses a single static callback structure for all instances, leading to a NULL pointer dereference when a device is removed. The issue also affects the hid-sensor-temperature driver, which shares the same code. The fix involves using per-instance callbacks stored within each sensor's state structure.
A vulnerability in the Linux kernel's w1 netlink subsystem involves improper handling of slave device references during bus unlocking. The issue occurs because the slave reference is dropped before the bus mutex is unlocked, potentially causing deadlocks when the slave is detached concurrently. This flaw has been resolved by changing the code to drop the slave reference only after unlocking the bus mutex, preventing indefinite waits.
A vulnerability in the Linux kernel's USB dwc3 gadget driver causes the endpoint resource to remain unreleased if the End Transfer command times out. This results in subsequent Start Transfer commands to the endpoint failing with a "No Resource" error. The issue is addressed by scheduling an error recovery to reset the controller.
A use-after-free vulnerability was fixed in the Linux kernel's iio accel kxsd9 driver. The flaw occurred when unregistering an IIO device with an active triggered buffer, where the poll function could be freed before the device was unregistered, leading to access of freed memory. The fix ensures the device is unregistered before cleaning up the triggered buffer.
A concurrency issue in the Linux kernel's w1 subsystem for the ds28e04 device driver was resolved by ensuring proper use of the bus mutex. Previously, the driver used the master's mutex in callbacks, leading to potential deadlocks when a slave device disappeared from the bus. This caused tasks to become stuck, including the bus master's thread, and allowed bus transactions to be mixed up due to lack of proper serialization.
A null pointer dereference vulnerability was fixed in the Linux kernel's usb gadget u_serial driver. The issue occurs in the gs_close() function when it attempts to access a NULL pointer after a failed open operation. This happens because gs_open() only assigns the driver_data pointer on a successful open, but if the open fails early, the close function is still called and tries to lock a NULL port, causing a kernel crash.
A divide-by-zero vulnerability was identified and fixed in the Linux kernel's usbtest driver in the simple_io() function. This flaw occurs when a zero-length USB transfer with varying length is requested, causing a division by zero and a kernel oops (crash). The issue was addressed by adding a check to return an error early when such a condition is detected, preventing the divide-by-zero error. Zero-length transfers without varying length remain valid and unaffected.
A vulnerability in the Linux kernel's USB Type-C UCSI driver can cause a crash due to a NULL pointer dereference. The issue arises because the connector pointer is not set before enabling notifications, allowing a connector change notification to trigger a crash if it occurs too early. This has been fixed by setting the connector pointer before enabling notifications and clearing it on error paths.
A vulnerability in the Linux kernel's USB serial driver for Garmin GPS devices allows improper validation of packet data length in the nat_receive() function. This flaw can lead to slab-out-of-bounds reads due to underflow in length calculation when a crafted packet with a negative length field is processed. The issue has been fixed by validating the unsigned 32-bit data length early and rejecting invalid packets.
A synchronization issue in the Linux kernel's w1 ds2805 driver was fixed by ensuring the bus mutex is used properly during bus communication. Previously, the driver used the master's mutex in EEPROM file callbacks, causing potential deadlocks and allowing concurrent transactions to mix on the bus.