# CVE-2022-49981: HID: hidraw: fix memory leak in hidraw\_release()

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-06-18T11:00:43.351Z
- **Modified:** 2026-06-17T05:19:40.430Z

## Who should check

- Anyone running Linux \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< 1bea0bbf66001b0c7bf239a4d70eaf47824d3feb; \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< c06b013f5cbfeafe0a9cfa5a7128604c34e0e517; \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< f5b7e9611cffec345d62d5bdd8b6e30e89956818; \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< 53c7c4d5d40b45c127cb1193bf3e9670f844c3cf; \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< 7e2fa79226580b035b00260d9f240ab9bda4af5d; \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< dfd27a737283313a3e626e97b9d9b2d8d6a94188; \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< 52a3c62a815161c2dcf38ac421f6c41d8679462b; \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< a5623a203cffe2d2b84d2f6c989d9017db1856af
- Anyone running Linux 2.6.24

## Description

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

HID: hidraw: fix memory leak in hidraw\_release()

Free the buffered reports before deleting the list entry.

BUG: memory leak
unreferenced object 0xffff88810e72f180 (size 32):
  comm "softirq", pid 0, jiffies 4294945143 (age 16.080s)
  hex dump (first 32 bytes):
    64 f3 c6 6a d1 88 07 04 00 00 00 00 00 00 00 00  d..j............
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    \[\<ffffffff814ac6c3\>\] kmemdup+0x23/0x50 mm/util.c:128
    \[\<ffffffff8357c1d2\>\] kmemdup include/linux/fortify-string.h:440 \[inline\]
    \[\<ffffffff8357c1d2\>\] hidraw\_report\_event+0xa2/0x150 drivers/hid/hidraw.c:521
    \[\<ffffffff8356ddad\>\] hid\_report\_raw\_event+0x27d/0x740 drivers/hid/hid-core.c:1992
    \[\<ffffffff8356e41e\>\] hid\_input\_report+0x1ae/0x270 drivers/hid/hid-core.c:2065
    \[\<ffffffff835f0d3f\>\] hid\_irq\_in+0x1ff/0x250 drivers/hid/usbhid/hid-core.c:284
    \[\<ffffffff82d3c7f9\>\] \_\_usb\_hcd\_giveback\_urb+0xf9/0x230 drivers/usb/core/hcd.c:1670
    \[\<ffffffff82d3cc26\>\] usb\_hcd\_giveback\_urb+0x1b6/0x1d0 drivers/usb/core/hcd.c:1747
    \[\<ffffffff82ef1e14\>\] dummy\_timer+0x8e4/0x14c0 drivers/usb/gadget/udc/dummy\_hcd.c:1988
    \[\<ffffffff812f50a8\>\] call\_timer\_fn+0x38/0x200 kernel/time/timer.c:1474
    \[\<ffffffff812f5586\>\] expire\_timers kernel/time/timer.c:1519 \[inline\]
    \[\<ffffffff812f5586\>\] \_\_run\_timers.part.0+0x316/0x430 kernel/time/timer.c:1790
    \[\<ffffffff812f56e4\>\] \_\_run\_timers kernel/time/timer.c:1768 \[inline\]
    \[\<ffffffff812f56e4\>\] run\_timer\_softirq+0x44/0x90 kernel/time/timer.c:1803
    \[\<ffffffff848000e6\>\] \_\_do\_softirq+0xe6/0x2ea kernel/softirq.c:571
    \[\<ffffffff81246db0\>\] invoke\_softirq kernel/softirq.c:445 \[inline\]
    \[\<ffffffff81246db0\>\] \_\_irq\_exit\_rcu kernel/softirq.c:650 \[inline\]
    \[\<ffffffff81246db0\>\] irq\_exit\_rcu+0xc0/0x110 kernel/softirq.c:662
    \[\<ffffffff84574f02\>\] sysvec\_apic\_timer\_interrupt+0xa2/0xd0 arch/x86/kernel/apic/apic.c:1106
    \[\<ffffffff84600c8b\>\] asm\_sysvec\_apic\_timer\_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649
    \[\<ffffffff8458a070\>\] native\_safe\_halt arch/x86/include/asm/irqflags.h:51 \[inline\]
    \[\<ffffffff8458a070\>\] arch\_safe\_halt arch/x86/include/asm/irqflags.h:89 \[inline\]
    \[\<ffffffff8458a070\>\] acpi\_safe\_halt drivers/acpi/processor\_idle.c:111 \[inline\]
    \[\<ffffffff8458a070\>\] acpi\_idle\_do\_entry+0xc0/0xd0 drivers/acpi/processor\_idle.c:554

## Affected and fixed versions

- Linux: \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< 1bea0bbf66001b0c7bf239a4d70eaf47824d3feb; \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< c06b013f5cbfeafe0a9cfa5a7128604c34e0e517; \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< f5b7e9611cffec345d62d5bdd8b6e30e89956818; \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< 53c7c4d5d40b45c127cb1193bf3e9670f844c3cf; \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< 7e2fa79226580b035b00260d9f240ab9bda4af5d; \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< dfd27a737283313a3e626e97b9d9b2d8d6a94188; \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< 52a3c62a815161c2dcf38ac421f6c41d8679462b; \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< a5623a203cffe2d2b84d2f6c989d9017db1856af (cvelist)
- Linux: 2.6.24 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-49981.md
Affected: Linux >= 86166b7bcda0bcb53525114fa1c87ac432be478e, < 1bea0bbf66001b0c7bf239a4d70eaf47824d3feb; >= 86166b7bcda0bcb53525114fa1c87ac432be478e, < c06b013f5cbfeafe0a9cfa5a7128604c34e0e517; >= 86166b7bcda0bcb53525114fa1c87ac432be478e, < f5b7e9611cffec345d62d5bdd8b6e30e89956818; >= 86166b7bcda0bcb53525114…
Fixed in: Linux 1bea0bbf66001b0c7bf239a4d70eaf47824d3feb, Linux 53c7c4d5d40b45c127cb1193bf3e9670f844c3cf, Linux 7e2fa79226580b035b00260d9f240ab9bda4af5d, Linux 52a3c62a815161c2dcf38ac421f6c41d8679462b

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-2022-49981 being exploited?

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

### How serious is CVE-2022-49981?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49981?

Linux \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< 1bea0bbf66001b0c7bf239a4d70eaf47824d3feb; \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< c06b013f5cbfeafe0a9cfa5a7128604c34e0e517; \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< f5b7e9611cffec345d62d5bdd8b6e30e89956818; \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< 53c7c4d5d40b45c127cb1193bf3e9670f844c3cf; \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< 7e2fa79226580b035b00260d9f240ab9bda4af5d; \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< dfd27a737283313a3e626e97b9d9b2d8d6a94188; \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< 52a3c62a815161c2dcf38ac421f6c41d8679462b; \>= 86166b7bcda0bcb53525114fa1c87ac432be478e, \< a5623a203cffe2d2b84d2f6c989d9017db1856af; Linux 2.6.24.

### Is there a fix for CVE-2022-49981?

Yes. Fixed in Linux 1bea0bbf66001b0c7bf239a4d70eaf47824d3feb, Linux 53c7c4d5d40b45c127cb1193bf3e9670f844c3cf, Linux 7e2fa79226580b035b00260d9f240ab9bda4af5d, Linux 52a3c62a815161c2dcf38ac421f6c41d8679462b. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-49981?

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/1bea0bbf66001b0c7bf239a4d70eaf47824d3feb>
- patch: <https://git.kernel.org/stable/c/c06b013f5cbfeafe0a9cfa5a7128604c34e0e517>
- patch: <https://git.kernel.org/stable/c/f5b7e9611cffec345d62d5bdd8b6e30e89956818>
- patch: <https://git.kernel.org/stable/c/53c7c4d5d40b45c127cb1193bf3e9670f844c3cf>
- patch: <https://git.kernel.org/stable/c/7e2fa79226580b035b00260d9f240ab9bda4af5d>
- patch: <https://git.kernel.org/stable/c/dfd27a737283313a3e626e97b9d9b2d8d6a94188>
- patch: <https://git.kernel.org/stable/c/52a3c62a815161c2dcf38ac421f6c41d8679462b>
- patch: <https://git.kernel.org/stable/c/a5623a203cffe2d2b84d2f6c989d9017db1856af>

## 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-2022-49981>

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