Description
In the Linux kernel, the following vulnerability has been resolved: most: usb: hdm_probe: Fix calling put_device() before device initialization The early error path in hdm_probe() can jump to err_free_mdev before &mdev->dev has been initialized with device_initialize(). Calling put_device(&mdev->dev) there triggers a device core WARN and ends up invoking kref_put(&kobj->kref, kobject_release) on an uninitialized kobject. In this path the private struct was only kmalloc'ed and the intended release is effectively kfree(mdev) anyway, so free it directly instead of calling put_device() on an uninitialized device. This removes the WARNING and fixes the pre-initialization error path.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
97a6f772f36b7f52bcfa56a581bbd2470cffe23d to < 3509c748e79435d09e730673c8c100b7f0ebc87caffected97a6f772f36b7f52bcfa56a581bbd2470cffe23d to < ad2be44882716dc3589fbc5572cc13f88ead6b24affected97a6f772f36b7f52bcfa56a581bbd2470cffe23d to < c400410fe0580dd6118ae8d60287ac9ce71a65fdaffected97a6f772f36b7f52bcfa56a581bbd2470cffe23d to < 6fb8fbc0aa542af5bf0fed94fa6b0edf18144f95affected97a6f772f36b7f52bcfa56a581bbd2470cffe23d to < 7d851f746067b8ee5bac9c262f326ace0a6ea253affected97a6f772f36b7f52bcfa56a581bbd2470cffe23d to < 4af0eedbdb4df7936bf43a28e31af232744d2620affected97a6f772f36b7f52bcfa56a581bbd2470cffe23d to < a8cc9e5fcb0e2eef21513a4fec888f5712cb8162affected
Linux Linux
Default version status: affected
5.9affected0 to < 5.9unaffected5.10.246 to ≤ 5.10.*unaffected5.15.196 to ≤ 5.15.*unaffected6.1.158 to ≤ 6.1.*unaffected6.6.115 to ≤ 6.6.*unaffected6.12.56 to ≤ 6.12.*unaffected6.17.6 to ≤ 6.17.*unaffected6.18 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/3509c748e79435d09e730673c8c100b7f0ebc87c ↗
- https://git.kernel.org/stable/c/ad2be44882716dc3589fbc5572cc13f88ead6b24 ↗
- https://git.kernel.org/stable/c/c400410fe0580dd6118ae8d60287ac9ce71a65fd ↗
- https://git.kernel.org/stable/c/6fb8fbc0aa542af5bf0fed94fa6b0edf18144f95 ↗
- https://git.kernel.org/stable/c/7d851f746067b8ee5bac9c262f326ace0a6ea253 ↗
- https://git.kernel.org/stable/c/4af0eedbdb4df7936bf43a28e31af232744d2620 ↗
- https://git.kernel.org/stable/c/a8cc9e5fcb0e2eef21513a4fec888f5712cb8162 ↗