CVE-2025-68249

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

State
Published
Severity
Not scored
Published
Dec 16, 2025
Updated
May 11, 2026
Reserved
Dec 16, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 97a6f772f36b7f52bcfa56a581bbd2470cffe23d to before 3509c748e79435d09e730673c8c100b7f0ebc87cAffected
  • 97a6f772f36b7f52bcfa56a581bbd2470cffe23d to before ad2be44882716dc3589fbc5572cc13f88ead6b24Affected
  • 97a6f772f36b7f52bcfa56a581bbd2470cffe23d to before c400410fe0580dd6118ae8d60287ac9ce71a65fdAffected
  • 97a6f772f36b7f52bcfa56a581bbd2470cffe23d to before 6fb8fbc0aa542af5bf0fed94fa6b0edf18144f95Affected
  • 97a6f772f36b7f52bcfa56a581bbd2470cffe23d to before 7d851f746067b8ee5bac9c262f326ace0a6ea253Affected
  • 97a6f772f36b7f52bcfa56a581bbd2470cffe23d to before 4af0eedbdb4df7936bf43a28e31af232744d2620Affected
  • 97a6f772f36b7f52bcfa56a581bbd2470cffe23d to before a8cc9e5fcb0e2eef21513a4fec888f5712cb8162Affected
LinuxLinux
  • 5.9Affected
  • before 5.9Not affected
  • 5.10.246 through 5.10.*Not affected
  • 5.15.196 through 5.15.*Not affected
  • 6.1.158 through 6.1.*Not affected
  • 6.6.115 through 6.6.*Not affected
  • 6.12.56 through 6.12.*Not affected
  • 6.17.6 through 6.17.*Not affected
  • 6.18 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.