HID: uclogic: Correct devm device reference for hidinput input_dev name (Linux Linux)

CVE-2023-54207
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.16 % · percentile 5 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: HID: uclogic: Correct devm device reference for hidinput input_dev name Reference the HID device rather than the input device for the devm allocation of the input_dev name. Referencing the input_dev would lead to a use-after-free when the input_dev was unregistered and subsequently fires a uevent that depends on the name. At the point of firing the uevent, the name would be freed by devres management. Use devm_kasprintf to simplify the logic for allocating memory and formatting the input_dev name string.

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:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected cce2dbdf258e6b27b2b100f511531edabb77f427 < f78bb490b16ecb506d4904be4b00bf9aad6588f9 ; affected cce2dbdf258e6b27b2b100f511531edabb77f427 < 51f49e3927ad545cec0c0afb86856ccacd9f085d ; affected cce2dbdf258e6b27b2b100f511531edabb77f427 < f283805d984343b2f216e2f4c6c7af265b9542ae ; affected cce2dbdf258e6b27b2b100f511531edabb77f427 < 4c2707dfee5847dc0b5ecfbe512c29c93832fdc4 ; affected cce2dbdf258e6b27b2b100f511531edabb77f427 < 58f0d1c0e494a88f301bf455da7df4366f179bbb ; affected cce2dbdf258e6b27b2b100f511531edabb77f427 < dd613a4e45f8d35f49a63a2064e5308fa5619e29
Linux · Linuxaffected 4.1 ; unaffected 0 < 4.1 ; unaffected 5.10.249 ≤ 5.10.* ; unaffected 5.15.199 ≤ 5.15.* ; unaffected 6.1.53 ≤ 6.1.* ; unaffected 6.4.16 ≤ 6.4.*

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