# CVE-2023-52840: Input: synaptics-rmi4 - fix use after free in rmi\_unregister\_function()

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-05-21 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2023-52840, DEBIAN-CVE-2023-52840
- Record: https://cvemate.com/vulnerability/CVE-2023-52840 · JSON: https://cvemate.com/vulnerability/CVE-2023-52840/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.244%, percentile 16.722%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 116)

- debian linux (Debian): \< 6.1.64-1 \| \< 6.6.8-1
- ubuntu linux (Ubuntu): \< 5.4.0-173.191 \| \< 5.15.0-100.110
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.4.0-1120.130 \| \< 5.15.0-1056.61
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1056.61~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1120.130~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): \< 5.4.0-1120.130+fips1 \| All versions (No fix recorded) \| \< 5.15.0-1056.61+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1126.133 \| \< 5.15.0-1058.66
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1058.66~20.04.2
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/2f236d8638f5b43e0c72919a6a27fe286c32053f>
- <https://git.kernel.org/stable/c/50d12253666195a14c6cd2b81c376e2dbeedbdff>
- <https://git.kernel.org/stable/c/6c71e065befb2fae8f1461559b940c04e1071bd5>
- <https://git.kernel.org/stable/c/303766bb92c5c225cf40f9bbbe7e29749406e2f2>
- <https://git.kernel.org/stable/c/7082b1fb5321037bc11ba1cf2d7ed23c6b2b521f>
- <https://git.kernel.org/stable/c/cc56c4d17721dcb10ad4e9c9266e449be1462683>
- <https://git.kernel.org/stable/c/c8e639f5743cf4b01f8c65e0df075fe4d782b585>
- <https://git.kernel.org/stable/c/eb988e46da2e4eae89f5337e047ce372fe33d5b1>
- <https://ubuntu.com/security/CVE-2023-52840>
- <https://www.cve.org/CVERecord?id=CVE-2023-52840>
- <https://git.kernel.org/linus/eb988e46da2e4eae89f5337e047ce372fe33d5b1>
- <https://security-tracker.debian.org/tracker/CVE-2023-52840>

---

Data as of 2026-12-05T09:13:49.458Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
