# CVE-2023-52840: Input: synaptics-rmi4 - fix use after free in rmi_unregister_function()

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-02)
- Published: 2024-05-21T15:31:39.862Z
- Modified: 2026-06-17T06:43:42.313Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

Input: synaptics-rmi4 - fix use after free in rmi_unregister_function()

The put_device() calls rmi_release_function() which frees "fn" so the
dereference on the next line "fn->num_of_irqs" is a use after free.
Move the put_device() to the end to fix this.

(As written by CVE List.)

## Affected

- Linux Linux: from 24d28e4f1271cb2f91613dada8f2acccd00eff56 before 2f236d8638f5b43e0c72919a6a27fe286c32053f; from 24d28e4f1271cb2f91613dada8f2acccd00eff56 before 50d12253666195a14c6cd2b81c376e2dbeedbdff; from 24d28e4f1271cb2f91613dada8f2acccd00eff56 before 6c71e065befb2fae8f1461559b940c04e1071bd5; from 24d28e4f1271cb2f91613dada8f2acccd00eff56 before 303766bb92c5c225cf40f9bbbe7e29749406e2f2; from 24d28e4f1271cb2f91613dada8f2acccd00eff56 before 7082b1fb5321037bc11ba1cf2d7ed23c6b2b521f; from 24d28e4f1271cb2f91613dada8f2acccd00eff56 before cc56c4d17721dcb10ad4e9c9266e449be1462683; from 24d28e4f1271cb2f91613dada8f2acccd00eff56 before c8e639f5743cf4b01f8c65e0df075fe4d782b585; from 24d28e4f1271cb2f91613dada8f2acccd00eff56 before eb988e46da2e4eae89f5337e047ce372fe33d5b1; 4.18 (not affected: before 4.18; from 4.19.299 up to 4.19.*; from 5.4.261 up to 5.4.*; from 5.10.201 up to 5.10.*; from 5.15.139 up to 5.15.*; from 6.1.63 up to 6.1.*; from 6.5.12 up to 6.5.*; from 6.6.2 up to 6.6.*; from 6.7 up to *)
- linux linux_kernel: from 4.18 before 4.19.299; from 4.20 before 5.4.261; from 5.5 before 5.10.201; from 5.11 before 5.15.139; from 5.16 before 6.1.63; from 6.2 before 6.5.12; from 6.6 before 6.6.2

## References

- <https://git.kernel.org/stable/c/2f236d8638f5b43e0c72919a6a27fe286c32053f> (patch)
- <https://git.kernel.org/stable/c/50d12253666195a14c6cd2b81c376e2dbeedbdff> (patch)
- <https://git.kernel.org/stable/c/6c71e065befb2fae8f1461559b940c04e1071bd5> (patch)
- <https://git.kernel.org/stable/c/303766bb92c5c225cf40f9bbbe7e29749406e2f2> (patch)
- <https://git.kernel.org/stable/c/7082b1fb5321037bc11ba1cf2d7ed23c6b2b521f> (patch)
- <https://git.kernel.org/stable/c/cc56c4d17721dcb10ad4e9c9266e449be1462683> (patch)
- <https://git.kernel.org/stable/c/c8e639f5743cf4b01f8c65e0df075fe4d782b585> (patch)
- <https://git.kernel.org/stable/c/eb988e46da2e4eae89f5337e047ce372fe33d5b1> (patch)

## Sources

- CVE List: [CVE-2023-52840](https://www.cve.org/CVERecord?id=CVE-2023-52840), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-52840](https://nvd.nist.gov/vuln/detail/CVE-2023-52840), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52840 · Whole record: https://cve.day/CVE-2023-52840.json · Rebuilt by cve.day 2026-11-25T22:58:34.047Z
