5.5medium
HID: appletb-kbd: fix "appletb_backlight" backlight device reference counting
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.15% (higher than 4% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: HID: appletb-kbd: fix "appletb_backlight" backlight device reference counting During appletb_kbd_probe, probe attempts to get the backlight device by name. When this happens backlight_device_get_by_name looks for a device in the backlight class which has name "appletb_backlight" and upon finding a match it increments the reference count for the device and returns it to the caller. However this reference is never released leading to a reference leak. Fix this by decrementing the backlight device reference count on removal via put_device and on probe failure.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 93a0fc48948107e0cc34e1de22c3cb363a8f2783 before 751d5437112a3f387de4ef6d2d1c131068ff7627, from 93a0fc48948107e0cc34e1de22c3cb363a8f2783 before 4540e41e753a7d69ecd3f5bad51fe620205c3a18, 6.15 Not affected: before 6.15, from 6.15.5 up to 6.15.*, from 6.16 up to * | CVE List |
| linux linux_kernel | from 6.15 before 6.15.5, 6.16 | NVD |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: HID: appletb-kbd: fix "appletb_backlight" backlight device reference counting During appletb_kbd_probe, probe attempts to get the backlight device by name. When this happens backlight_device_get_by_name looks for a device in the backlight class which has name "appletb_backlight" and upon finding a match it increments the reference count for the device and returns it to the caller. However this reference is never released leading to a reference leak. Fix this by decrementing the backlight device reference count on removal via put_device and on probe failure.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: HID: appletb-kbd: corrección del conteo de referencias del dispositivo de retroiluminación "appletb_backlight". Durante appletb_kbd_probe, la sonda intenta obtener el dispositivo de retroiluminación por nombre. Cuando esto ocurre, backlight_device_get_by_name busca un dispositivo en la clase de retroiluminación con el nombre "appletb_backlight" y, al encontrar una coincidencia, incrementa el conteo de referencias del dispositivo y lo devuelve al invocador. Sin embargo, esta referencia nunca se libera, lo que provoca una fuga de referencias. Para solucionar esto, disminuya el conteo de referencias del dispositivo de retroiluminación al eliminarlo mediante put_device y si la sonda falla.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-38235 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-38235 changed 2026-06-17 | Public domain |