Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-46746 Overview
CVE-2024-46746 is a use-after-free vulnerability [CWE-416] in the Linux kernel's AMD Sensor Fusion Hub (amd_sfh) HID driver. The flaw occurs because driver_data is freed before hid_destroy_device() completes, while callbacks such as amd_sfh_get_report still reference the freed memory. KASAN instrumentation on kernel 6.10.0 confirmed a slab-use-after-free read of 8 bytes inside amd_sfh_get_report+0x3ec/0x530. The issue affects AMD-based systems using the sensor fusion hub for ambient light, accelerometer, gyroscope, and magnetometer sensors.
Critical Impact
Local attackers with low privileges on affected AMD-powered Linux systems can trigger kernel memory corruption, leading to privilege escalation, information disclosure, or denial of service.
Affected Products
- Linux kernel versions prior to the fix (including 6.10.x and 6.11-rc1 through 6.11-rc4)
- Debian Linux 11 (bullseye)
- Linux distributions shipping unpatched kernels with the amd_sfh driver enabled
Discovery Timeline
- 2024-09-18 - CVE-2024-46746 published to NVD
- 2026-08-04 - Last updated in NVD database
Technical Details for CVE-2024-46746
Vulnerability Analysis
The vulnerability resides in the AMD Sensor Fusion Hub HID driver (drivers/hid/amd-sfh-hid). During device teardown, the driver freed its private driver_data structure before calling hid_destroy_device(). Because driver_data is dereferenced by several HID callbacks, including amd_sfh_get_report and amdtp_hid_request, any callback invoked between the free and the device destruction operates on dangling memory.
KASAN output captured the fault chain: hid_gyro_3d_probe triggered hid_sensor_parse_common_attributes, which called sensor_hub_get_feature, which invoked amdtp_hid_request, which reached amd_sfh_get_report and read freed memory at offset 0x3ec. The resulting slab-use-after-free can corrupt adjacent kernel objects when the freed slab is reallocated.
Root Cause
The driver violated the HID subsystem's teardown ordering contract. HID callbacks remain callable until hid_destroy_device() returns. Releasing driver_data beforehand creates a window where callbacks dereference freed memory. The upstream fix reorders the cleanup so driver_data is freed only after hid_destroy_device() completes.
Attack Vector
Exploitation requires local access with low privileges on a system containing an AMD sensor fusion hub, typically found in modern AMD-based laptops such as the Lenovo ThinkPad T14s Gen 3 referenced in the KASAN report. An attacker can trigger the vulnerable code path by inducing driver probe or removal events, for example by loading or unloading HID sensor modules. Successful exploitation of the use-after-free can lead to kernel memory disclosure, privilege escalation to root, or a kernel panic resulting in denial of service.
No public proof-of-concept is listed for this CVE, and it is not tracked in the CISA Known Exploited Vulnerabilities catalog. See the kernel commit adb3e3c for the authoritative patch.
Detection Methods for CVE-2024-46746
Indicators of Compromise
- KASAN reports in dmesg referencing slab-use-after-free in amd_sfh_get_report or related symbols such as amdtp_hid_request and sensor_hub_get_feature.
- Unexpected kernel oopses, panics, or soft lockups during HID sensor module load, unload, or suspend/resume cycles on AMD platforms.
- Repeated probe failures for hid_sensor_gyro_3d, hid_sensor_accel_3d, or hid_sensor_als logged by the kernel.
Detection Strategies
- Audit running kernel version against patched stable releases referenced in the kernel.org commits.
- Monitor /var/log/kern.log and journalctl -k for BUG: KASAN or general protection fault entries involving amd_sfh.
- Correlate kernel crash telemetry with recent module load events for amd_sfh, hid_sensor_hub, and dependent sensor drivers.
Monitoring Recommendations
- Centralize kernel log collection and alert on use-after-free signatures from HID subsystem modules.
- Track module load and unload events via auditd rules on init_module and delete_module syscalls.
- Baseline AMD laptop fleets for kernel version and sensor driver status to identify unpatched hosts.
How to Mitigate CVE-2024-46746
Immediate Actions Required
- Upgrade to a Linux kernel release that includes one of the fix commits: 60dc4ee, 775125c, 86b4f5c, 9715502, or adb3e3c.
- Apply the Debian 11 LTS update described in the Debian LTS Announcement.
- Restrict local, unprivileged access on affected AMD laptops until patches are deployed.
Patch Information
The fix reorders driver cleanup so driver_data is freed only after hid_destroy_device() returns. Stable kernel trees received backports under commits 60dc4ee, 775125c, 86b4f5c, 9715502, and adb3e3c. Debian users should install the kernel package shipped in the referenced LTS advisory.
Workarounds
- Blacklist the amd_sfh module where sensor functionality is not required by adding blacklist amd_sfh to /etc/modprobe.d/.
- Disable loading of dependent HID sensor modules such as hid_sensor_gyro_3d, hid_sensor_accel_3d, and hid_sensor_als on systems that do not need them.
- Enforce least-privilege access controls to prevent untrusted local users from invoking driver probe or removal operations.
# Configuration example: blacklist the vulnerable module until patched
echo "blacklist amd_sfh" | sudo tee /etc/modprobe.d/blacklist-amd-sfh.conf
sudo depmod -a
sudo update-initramfs -u
# Reboot to apply
sudo reboot
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

