CVE-2025-71082

Bluetooth: btusb: revert use of devm_kzalloc in btusb

HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.14 % · percentile 4 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: btusb: revert use of devm_kzalloc in btusb This reverts commit 98921dbd00c4e ("Bluetooth: Use devm_kzalloc in btusb.c file"). In btusb_probe(), we use devm_kzalloc() to allocate the btusb data. This ties the lifetime of all the btusb data to the binding of a driver to one interface, INTF. In a driver that binds to other interfaces, ISOC and DIAG, this is an accident waiting to happen. The issue is revealed in btusb_disconnect(), where calling usb_driver_release_interface(&btusb_driver, data->intf) will have devm free the data that is also being used by the other interfaces of the driver that may not be released yet. To fix this, revert the use of devm and go back to freeing memory explicitly.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 98921dbd00c4e2e4bdd56423cb5edf98d57b45f7 < fff9206b0907252a41eb12b7c1407b9347df18b1 ; affected 98921dbd00c4e2e4bdd56423cb5edf98d57b45f7 < cca0e9206e3bcc63cd3e72193e60149165d493cc ; affected 98921dbd00c4e2e4bdd56423cb5edf98d57b45f7 < c0ecb3e4451fe94f4315e6d09c4046dfbc42090b ; affected 98921dbd00c4e2e4bdd56423cb5edf98d57b45f7 < 1e54c19eaf84ba652c4e376571093e58e144b339 ; affected 98921dbd00c4e2e4bdd56423cb5edf98d57b45f7 < fdf7c640fb8a44a59b0671143d8c2f738bc48003 ; affected 98921dbd00c4e2e4bdd56423cb5edf98d57b45f7 < 252714f1e8bdd542025b16321c790458014d6880
Linux · Linuxaffected 3.7 ; unaffected 0 < 3.7 ; unaffected 5.15.198 ≤ 5.15.* ; unaffected 6.1.160 ≤ 6.1.* ; unaffected 6.6.120 ≤ 6.6.* ; unaffected 6.12.64 ≤ 6.12.*

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