CVE-2025-68249

most: usb: hdm_probe: Fix calling put_device() before device initialization

Not available

At a glance

Source
NVD
EPSS
EPSS 0.19 % · percentile 9 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Deferred

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.

References

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected 97a6f772f36b7f52bcfa56a581bbd2470cffe23d < 3509c748e79435d09e730673c8c100b7f0ebc87c ; affected 97a6f772f36b7f52bcfa56a581bbd2470cffe23d < ad2be44882716dc3589fbc5572cc13f88ead6b24 ; affected 97a6f772f36b7f52bcfa56a581bbd2470cffe23d < c400410fe0580dd6118ae8d60287ac9ce71a65fd ; affected 97a6f772f36b7f52bcfa56a581bbd2470cffe23d < 6fb8fbc0aa542af5bf0fed94fa6b0edf18144f95 ; affected 97a6f772f36b7f52bcfa56a581bbd2470cffe23d < 7d851f746067b8ee5bac9c262f326ace0a6ea253 ; affected 97a6f772f36b7f52bcfa56a581bbd2470cffe23d < 4af0eedbdb4df7936bf43a28e31af232744d2620
Linux · Linuxaffected 5.9 ; unaffected 0 < 5.9 ; unaffected 5.10.246 ≤ 5.10.* ; unaffected 5.15.196 ≤ 5.15.* ; unaffected 6.1.158 ≤ 6.1.* ; unaffected 6.6.115 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD