# CVE-2022-49430: Input: gpio-keys - cancel delayed work only in case of GPIO

> 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)
- **Published:** 2025-02-26T02:12:49.114Z
- **Modified:** 2026-06-17T05:18:01.753Z

## Who should check

- Anyone running Linux \>= 2531fdbf8bfc22b0a2554bb3e3772dd8105d74ad, \< 96c460687813915dedca9dd7d04ae0e90607fd79; \>= 2531fdbf8bfc22b0a2554bb3e3772dd8105d74ad, \< 4160e09619086fc155b51ccdb3462a3f233a5f4b; \>= 2531fdbf8bfc22b0a2554bb3e3772dd8105d74ad, \< 8b1ae300c2953257c146b5f0757537935c0b6027; \>= 2531fdbf8bfc22b0a2554bb3e3772dd8105d74ad, \< cee409bbba0d1bd3fb73064fb480ff365f453b5d
- Anyone running Linux 5.13

## Description

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

Input: gpio-keys - cancel delayed work only in case of GPIO

gpio\_keys module can either accept gpios or interrupts. The module
initializes delayed work in case of gpios only and is only used if
debounce timer is not used, so make sure cancel\_delayed\_work\_sync()
is called only when its gpio-backed and debounce\_use\_hrtimer is false.

This fixes the issue seen below when the gpio\_keys module is unloaded and
an interrupt pin is used instead of GPIO:

\[  360.297569\] ------------\[ cut here \]------------
\[  360.302303\] WARNING: CPU: 0 PID: 237 at kernel/workqueue.c:3066 \_\_flush\_work+0x414/0x470
\[  360.310531\] Modules linked in: gpio\_keys(-)
\[  360.314797\] CPU: 0 PID: 237 Comm: rmmod Not tainted 5.18.0-rc5-arm64-renesas-00116-g73636105874d-dirty \#166
\[  360.324662\] Hardware name: Renesas SMARC EVK based on r9a07g054l2 (DT)
\[  360.331270\] pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
\[  360.338318\] pc : \_\_flush\_work+0x414/0x470
\[  360.342385\] lr : \_\_cancel\_work\_timer+0x140/0x1b0
\[  360.347065\] sp : ffff80000a7fba00
\[  360.350423\] x29: ffff80000a7fba00 x28: ffff000012b9c5c0 x27: 0000000000000000
\[  360.357664\] x26: ffff80000a7fbb80 x25: ffff80000954d0a8 x24: 0000000000000001
\[  360.364904\] x23: ffff800009757000 x22: 0000000000000000 x21: ffff80000919b000
\[  360.372143\] x20: ffff00000f5974e0 x19: ffff00000f5974e0 x18: ffff8000097fcf48
\[  360.379382\] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000053f40
\[  360.386622\] x14: ffff800009850e88 x13: 0000000000000002 x12: 000000000000a60c
\[  360.393861\] x11: 000000000000a610 x10: 0000000000000000 x9 : 0000000000000008
\[  360.401100\] x8 : 0101010101010101 x7 : 00000000a473c394 x6 : 0080808080808080
\[  360.408339\] x5 : 0000000000000001 x4 : 0000000000000000 x3 : ffff80000919b458
\[  360.415578\] x2 : ffff8000097577f0 x1 : 0000000000000001 x0 : 0000000000000000
\[  360.422818\] Call trace:
\[  360.425299\]  \_\_flush\_work+0x414/0x470
\[  360.429012\]  \_\_cancel\_work\_timer+0x140/0x1b0
\[  360.433340\]  cancel\_delayed\_work\_sync+0x10/0x18
\[  360.437931\]  gpio\_keys\_quiesce\_key+0x28/0x58 \[gpio\_keys\]
\[  360.443327\]  devm\_action\_release+0x10/0x18
\[  360.447481\]  release\_nodes+0x8c/0x1a0
\[  360.451194\]  devres\_release\_all+0x90/0x100
\[  360.455346\]  device\_unbind\_cleanup+0x14/0x60
\[  360.459677\]  device\_release\_driver\_internal+0xe8/0x168
\[  360.464883\]  driver\_detach+0x4c/0x90
\[  360.468509\]  bus\_remove\_driver+0x54/0xb0
\[  360.472485\]  driver\_unregister+0x2c/0x58
\[  360.476462\]  platform\_driver\_unregister+0x10/0x18
\[  360.481230\]  gpio\_keys\_exit+0x14/0x828 \[gpio\_keys\]
\[  360.486088\]  \_\_arm64\_sys\_delete\_module+0x1e0/0x270
\[  360.490945\]  invoke\_syscall+0x40/0xf8
\[  360.494661\]  el0\_svc\_common.constprop.3+0xf0/0x110
\[  360.499515\]  do\_el0\_svc+0x20/0x78
\[  360.502877\]  el0\_svc+0x48/0xf8
\[  360.505977\]  el0t\_64\_sync\_handler+0x88/0xb0
\[  360.510216\]  el0t\_64\_sync+0x148/0x14c
\[  360.513930\] irq event stamp: 4306
\[  360.517288\] hardirqs last  enabled at (4305): \[\<ffff8000080b0300\>\] \_\_cancel\_work\_timer+0x130/0x1b0
\[  360.526359\] hardirqs last disabled at (4306): \[\<ffff800008d194fc\>\] el1\_dbg+0x24/0x88
\[  360.534204\] softirqs last  enabled at (4278): \[\<ffff8000080104a0\>\] \_stext+0x4a0/0x5e0
\[  360.542133\] softirqs last disabled at (4267): \[\<ffff8000080932ac\>\] irq\_exit\_rcu+0x18c/0x1b0
\[  360.550591\] ---\[ end trace 0000000000000000 \]---

## Affected and fixed versions

- Linux: \>= 2531fdbf8bfc22b0a2554bb3e3772dd8105d74ad, \< 96c460687813915dedca9dd7d04ae0e90607fd79; \>= 2531fdbf8bfc22b0a2554bb3e3772dd8105d74ad, \< 4160e09619086fc155b51ccdb3462a3f233a5f4b; \>= 2531fdbf8bfc22b0a2554bb3e3772dd8105d74ad, \< 8b1ae300c2953257c146b5f0757537935c0b6027; \>= 2531fdbf8bfc22b0a2554bb3e3772dd8105d74ad, \< cee409bbba0d1bd3fb73064fb480ff365f453b5d (cvelist)
- Linux: 5.13 (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-49430. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49430.md
Affected: Linux >= 2531fdbf8bfc22b0a2554bb3e3772dd8105d74ad, < 96c460687813915dedca9dd7d04ae0e90607fd79; >= 2531fdbf8bfc22b0a2554bb3e3772dd8105d74ad, < 4160e09619086fc155b51ccdb3462a3f233a5f4b; >= 2531fdbf8bfc22b0a2554bb3e3772dd8105d74ad, < 8b1ae300c2953257c146b5f0757537935c0b6027; >= 2531fdbf8bfc22b0a2554bb…
Fixed in: Linux 96c460687813915dedca9dd7d04ae0e90607fd79, Linux 4160e09619086fc155b51ccdb3462a3f233a5f4b, Linux 8b1ae300c2953257c146b5f0757537935c0b6027

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-49430 being exploited?

There is no confirmed exploitation: CVE-2022-49430 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-49430?

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

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

Linux \>= 2531fdbf8bfc22b0a2554bb3e3772dd8105d74ad, \< 96c460687813915dedca9dd7d04ae0e90607fd79; \>= 2531fdbf8bfc22b0a2554bb3e3772dd8105d74ad, \< 4160e09619086fc155b51ccdb3462a3f233a5f4b; \>= 2531fdbf8bfc22b0a2554bb3e3772dd8105d74ad, \< 8b1ae300c2953257c146b5f0757537935c0b6027; \>= 2531fdbf8bfc22b0a2554bb3e3772dd8105d74ad, \< cee409bbba0d1bd3fb73064fb480ff365f453b5d; Linux 5.13.

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

Yes. Fixed in Linux 96c460687813915dedca9dd7d04ae0e90607fd79, Linux 4160e09619086fc155b51ccdb3462a3f233a5f4b, Linux 8b1ae300c2953257c146b5f0757537935c0b6027. No fix listed yet: follow the vendor advisory.

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

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/96c460687813915dedca9dd7d04ae0e90607fd79>
- patch: <https://git.kernel.org/stable/c/4160e09619086fc155b51ccdb3462a3f233a5f4b>
- patch: <https://git.kernel.org/stable/c/8b1ae300c2953257c146b5f0757537935c0b6027>
- patch: <https://git.kernel.org/stable/c/cee409bbba0d1bd3fb73064fb480ff365f453b5d>

## 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-49430>

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