# CVE-2024-46746: HID: amd\_sfh: free driver\_data after destroying hid device

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-09-18T07:12:06.910Z
- **Modified:** 2026-08-05T11:38:19.210Z

## Who should check

- Anyone running Linux \>= 4f567b9f8141a86c7d878fadf136e5d1408e3e61, \< 86b4f5cf91ca03c08e3822ac89476a677a780bcc; \>= 4f567b9f8141a86c7d878fadf136e5d1408e3e61, \< 775125c7fe38533aaa4b20769f5b5e62cc1170a0; \>= 4f567b9f8141a86c7d878fadf136e5d1408e3e61, \< 60dc4ee0428d70bcbb41436b6729d29f1cbdfb89; \>= 4f567b9f8141a86c7d878fadf136e5d1408e3e61, \< adb3e3c1ddb5a23b8b7122ef1913f528d728937c; \>= 4f567b9f8141a86c7d878fadf136e5d1408e3e61, \< 97155021ae17b86985121b33cf8098bcde00d497
- Anyone running Linux 5.11

## Description

In the Linux kernel, the following vulnerability has been resolved:

HID: amd\_sfh: free driver\_data after destroying hid device

HID driver callbacks aren't called anymore once hid\_destroy\_device() has
been called. Hence, hid driver\_data should be freed only after the
hid\_destroy\_device() function returned as driver\_data is used in several
callbacks.

I observed a crash with kernel 6.10.0 on my T14s Gen 3, after enabling
KASAN to debug memory allocation, I got this output:

  \[   13.050438\] ==================================================================
  \[   13.054060\] BUG: KASAN: slab-use-after-free in amd\_sfh\_get\_report+0x3ec/0x530 \[amd\_sfh\]
  \[   13.054809\] psmouse serio1: trackpoint: Synaptics TrackPoint firmware: 0x02, buttons: 3/3
  \[   13.056432\] Read of size 8 at addr ffff88813152f408 by task (udev-worker)/479

  \[   13.060970\] CPU: 5 PID: 479 Comm: (udev-worker) Not tainted 6.10.0-arch1-2 \#1 893bb55d7f0073f25c46adbb49eb3785fefd74b0
  \[   13.063978\] Hardware name: LENOVO 21CQCTO1WW/21CQCTO1WW, BIOS R22ET70W (1.40 ) 03/21/2024
  \[   13.067860\] Call Trace:
  \[   13.069383\] input: TPPS/2 Synaptics TrackPoint as /devices/platform/i8042/serio1/input/input8
  \[   13.071486\]  \<TASK\>
  \[   13.071492\]  dump\_stack\_lvl+0x5d/0x80
  \[   13.074870\] snd\_hda\_intel 0000:33:00.6: enabling device (0000 -\> 0002)
  \[   13.078296\]  ? amd\_sfh\_get\_report+0x3ec/0x530 \[amd\_sfh 05f43221435b5205f734cd9da29399130f398a38\]
  \[   13.082199\]  print\_report+0x174/0x505
  \[   13.085776\]  ? \_\_pfx\_\_raw\_spin\_lock\_irqsave+0x10/0x10
  \[   13.089367\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
  \[   13.093255\]  ? amd\_sfh\_get\_report+0x3ec/0x530 \[amd\_sfh 05f43221435b5205f734cd9da29399130f398a38\]
  \[   13.097464\]  kasan\_report+0xc8/0x150
  \[   13.101461\]  ? amd\_sfh\_get\_report+0x3ec/0x530 \[amd\_sfh 05f43221435b5205f734cd9da29399130f398a38\]
  \[   13.105802\]  amd\_sfh\_get\_report+0x3ec/0x530 \[amd\_sfh 05f43221435b5205f734cd9da29399130f398a38\]
  \[   13.110303\]  amdtp\_hid\_request+0xb8/0x110 \[amd\_sfh 05f43221435b5205f734cd9da29399130f398a38\]
  \[   13.114879\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
  \[   13.119450\]  sensor\_hub\_get\_feature+0x1d3/0x540 \[hid\_sensor\_hub 3f13be3016ff415bea03008d45d99da837ee3082\]
  \[   13.124097\]  hid\_sensor\_parse\_common\_attributes+0x4d0/0xad0 \[hid\_sensor\_iio\_common c3a5cbe93969c28b122609768bbe23efe52eb8f5\]
  \[   13.127404\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
  \[   13.131925\]  ? \_\_pfx\_hid\_sensor\_parse\_common\_attributes+0x10/0x10 \[hid\_sensor\_iio\_common c3a5cbe93969c28b122609768bbe23efe52eb8f5\]
  \[   13.136455\]  ? \_raw\_spin\_lock\_irqsave+0x96/0xf0
  \[   13.140197\]  ? \_\_pfx\_\_raw\_spin\_lock\_irqsave+0x10/0x10
  \[   13.143602\]  ? devm\_iio\_device\_alloc+0x34/0x50 \[industrialio 3d261d5e5765625d2b052be40e526d62b1d2123b\]
  \[   13.147234\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
  \[   13.150446\]  ? \_\_devm\_add\_action+0x167/0x1d0
  \[   13.155061\]  hid\_gyro\_3d\_probe+0x120/0x7f0 \[hid\_sensor\_gyro\_3d 63da36a143b775846ab2dbb86c343b401b5e3172\]
  \[   13.158581\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
  \[   13.161814\]  platform\_probe+0xa2/0x150
  \[   13.165029\]  really\_probe+0x1e3/0x8a0
  \[   13.168243\]  \_\_driver\_probe\_device+0x18c/0x370
  \[   13.171500\]  driver\_probe\_device+0x4a/0x120
  \[   13.175000\]  \_\_driver\_attach+0x190/0x4a0
  \[   13.178521\]  ? \_\_pfx\_\_\_driver\_attach+0x10/0x10
  \[   13.181771\]  bus\_for\_each\_dev+0x106/0x180
  \[   13.185033\]  ? \_\_pfx\_\_raw\_spin\_lock+0x10/0x10
  \[   13.188229\]  ? \_\_pfx\_bus\_for\_each\_dev+0x10/0x10
  \[   13.191446\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
  \[   13.194382\]  bus\_add\_driver+0x29e/0x4d0
  \[   13.197328\]  driver\_register+0x1a5/0x360
  \[   13.200283\]  ? \_\_pfx\_hid\_gyro\_3d\_platform\_driver\_init+0x10/0x10 \[hid\_sensor\_gyro\_3d 63da36a143b775846ab2dbb86c343b401b5e3172\]
  \[   13.203362\]  do\_one\_initcall+0xa7/0x380
  \[   13.206432\]  ? \_\_pfx\_do\_one\_initcall+0x10/0x10
  \[   13.210175\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
  \[   13.213211\]  ? kasan\_unpoison+0x44/0x70
  \[   13.216688\]  do\_init\_module+0x238/0x750
  \[   13.2196
---truncated---

## Affected and fixed versions

- Linux: \>= 4f567b9f8141a86c7d878fadf136e5d1408e3e61, \< 86b4f5cf91ca03c08e3822ac89476a677a780bcc; \>= 4f567b9f8141a86c7d878fadf136e5d1408e3e61, \< 775125c7fe38533aaa4b20769f5b5e62cc1170a0; \>= 4f567b9f8141a86c7d878fadf136e5d1408e3e61, \< 60dc4ee0428d70bcbb41436b6729d29f1cbdfb89; \>= 4f567b9f8141a86c7d878fadf136e5d1408e3e61, \< adb3e3c1ddb5a23b8b7122ef1913f528d728937c; \>= 4f567b9f8141a86c7d878fadf136e5d1408e3e61, \< 97155021ae17b86985121b33cf8098bcde00d497 (cvelist)
- Linux: 5.11 (cvelist)

## Mitigation

- Upgrade Linux to 97155021ae17b86985121b33cf8098bcde00d497 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-46746. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-46746.md
Affected: Linux >= 4f567b9f8141a86c7d878fadf136e5d1408e3e61, < 86b4f5cf91ca03c08e3822ac89476a677a780bcc; >= 4f567b9f8141a86c7d878fadf136e5d1408e3e61, < 775125c7fe38533aaa4b20769f5b5e62cc1170a0; >= 4f567b9f8141a86c7d878fadf136e5d1408e3e61, < 60dc4ee0428d70bcbb41436b6729d29f1cbdfb89; >= 4f567b9f8141a86c7d878fa…
Fixed in: Linux 86b4f5cf91ca03c08e3822ac89476a677a780bcc, Linux 775125c7fe38533aaa4b20769f5b5e62cc1170a0, Linux 60dc4ee0428d70bcbb41436b6729d29f1cbdfb89, Linux 97155021ae17b86985121b33cf8098bcde00d497

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-46746 being exploited?

There is no confirmed exploitation: CVE-2024-46746 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-46746?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-46746?

Linux \>= 4f567b9f8141a86c7d878fadf136e5d1408e3e61, \< 86b4f5cf91ca03c08e3822ac89476a677a780bcc; \>= 4f567b9f8141a86c7d878fadf136e5d1408e3e61, \< 775125c7fe38533aaa4b20769f5b5e62cc1170a0; \>= 4f567b9f8141a86c7d878fadf136e5d1408e3e61, \< 60dc4ee0428d70bcbb41436b6729d29f1cbdfb89; \>= 4f567b9f8141a86c7d878fadf136e5d1408e3e61, \< adb3e3c1ddb5a23b8b7122ef1913f528d728937c; \>= 4f567b9f8141a86c7d878fadf136e5d1408e3e61, \< 97155021ae17b86985121b33cf8098bcde00d497; Linux 5.11.

### Is there a fix for CVE-2024-46746?

Yes. Fixed in Linux 86b4f5cf91ca03c08e3822ac89476a677a780bcc, Linux 775125c7fe38533aaa4b20769f5b5e62cc1170a0, Linux 60dc4ee0428d70bcbb41436b6729d29f1cbdfb89, Linux 97155021ae17b86985121b33cf8098bcde00d497. Upgrade Linux to 97155021ae17b86985121b33cf8098bcde00d497 or later.

### How do I check if I'm affected by CVE-2024-46746?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/86b4f5cf91ca03c08e3822ac89476a677a780bcc>
- patch: <https://git.kernel.org/stable/c/775125c7fe38533aaa4b20769f5b5e62cc1170a0>
- patch: <https://git.kernel.org/stable/c/60dc4ee0428d70bcbb41436b6729d29f1cbdfb89>
- patch: <https://git.kernel.org/stable/c/adb3e3c1ddb5a23b8b7122ef1913f528d728937c>
- patch: <https://git.kernel.org/stable/c/97155021ae17b86985121b33cf8098bcde00d497>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-46746>

HTML: <https://flawdb.com/CVE-2024-46746> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-46746>
