# CVE-2021-47499: iio: accel: kxcjk-1013: Fix possible memory leak in probe and remove

> 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.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2024-05-24T15:01:42.684Z
- **Modified:** 2026-06-17T04:17:38.020Z

## Who should check

- Anyone running Linux \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< 8c1d43f3a3fc7184c42d7398bdf59a2a2903e4fc; \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< 60a55b9d91ba99eb8cf015bc46dc2de05e168a15; \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< 3899700ddacbf7aaafadf44464fff3ff0d4e3307; \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< a3730f74159ad00a28960c0efe2a931fe6fe6b45; \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< 8c163a14277115ca962103910ab4cce55e862ffb; \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< ee86d0bad80bdcd11a87e188a596727f41b62320; \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< 14508fe13b1c578b3d2ba574f1d48b351975860c; \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< 70c9774e180d151abaab358108e3510a8e615215
- Anyone running Linux 4.2

## Description

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

iio: accel: kxcjk-1013: Fix possible memory leak in probe and remove

When ACPI type is ACPI\_SMO8500, the data-\>dready\_trig will not be set, the
memory allocated by iio\_triggered\_buffer\_setup() will not be freed, and cause
memory leak as follows:

unreferenced object 0xffff888009551400 (size 512):
  comm "i2c-SMO8500-125", pid 911, jiffies 4294911787 (age 83.852s)
  hex dump (first 32 bytes):
    02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 20 e2 e5 c0 ff ff ff ff  ........ .......
  backtrace:
    \[\<0000000041ce75ee\>\] kmem\_cache\_alloc\_trace+0x16d/0x360
    \[\<000000000aeb17b0\>\] iio\_kfifo\_allocate+0x41/0x130 \[kfifo\_buf\]
    \[\<000000004b40c1f5\>\] iio\_triggered\_buffer\_setup\_ext+0x2c/0x210 \[industrialio\_triggered\_buffer\]
    \[\<000000004375b15f\>\] kxcjk1013\_probe+0x10c3/0x1d81 \[kxcjk\_1013\]

Fix it by remove data-\>dready\_trig condition in probe and remove.

## Affected and fixed versions

- Linux: \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< 8c1d43f3a3fc7184c42d7398bdf59a2a2903e4fc; \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< 60a55b9d91ba99eb8cf015bc46dc2de05e168a15; \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< 3899700ddacbf7aaafadf44464fff3ff0d4e3307; \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< a3730f74159ad00a28960c0efe2a931fe6fe6b45; \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< 8c163a14277115ca962103910ab4cce55e862ffb; \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< ee86d0bad80bdcd11a87e188a596727f41b62320; \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< 14508fe13b1c578b3d2ba574f1d48b351975860c; \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< 70c9774e180d151abaab358108e3510a8e615215 (cvelist)
- Linux: 4.2 (cvelist)

## Mitigation

- Upgrade Linux to 70c9774e180d151abaab358108e3510a8e615215 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2021-47499.md
Affected: Linux >= a25691c1f9674090fb66586cf4c5d60d3efdf339, < 8c1d43f3a3fc7184c42d7398bdf59a2a2903e4fc; >= a25691c1f9674090fb66586cf4c5d60d3efdf339, < 60a55b9d91ba99eb8cf015bc46dc2de05e168a15; >= a25691c1f9674090fb66586cf4c5d60d3efdf339, < 3899700ddacbf7aaafadf44464fff3ff0d4e3307; >= a25691c1f9674090fb66586…
Fixed in: Linux 8c1d43f3a3fc7184c42d7398bdf59a2a2903e4fc, Linux 60a55b9d91ba99eb8cf015bc46dc2de05e168a15, Linux 3899700ddacbf7aaafadf44464fff3ff0d4e3307, Linux 8c163a14277115ca962103910ab4cce55e862ffb, Linux 14508fe13b1c578b3d2ba574f1d48b351975860c, Linux 70c9774e180d151abaab358108e3510a8e615215

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-2021-47499 being exploited?

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

### How serious is CVE-2021-47499?

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

### Which versions are affected by CVE-2021-47499?

Linux \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< 8c1d43f3a3fc7184c42d7398bdf59a2a2903e4fc; \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< 60a55b9d91ba99eb8cf015bc46dc2de05e168a15; \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< 3899700ddacbf7aaafadf44464fff3ff0d4e3307; \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< a3730f74159ad00a28960c0efe2a931fe6fe6b45; \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< 8c163a14277115ca962103910ab4cce55e862ffb; \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< ee86d0bad80bdcd11a87e188a596727f41b62320; \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< 14508fe13b1c578b3d2ba574f1d48b351975860c; \>= a25691c1f9674090fb66586cf4c5d60d3efdf339, \< 70c9774e180d151abaab358108e3510a8e615215; Linux 4.2.

### Is there a fix for CVE-2021-47499?

Yes. Fixed in Linux 8c1d43f3a3fc7184c42d7398bdf59a2a2903e4fc, Linux 60a55b9d91ba99eb8cf015bc46dc2de05e168a15, Linux 3899700ddacbf7aaafadf44464fff3ff0d4e3307, Linux 8c163a14277115ca962103910ab4cce55e862ffb, Linux 14508fe13b1c578b3d2ba574f1d48b351975860c, Linux 70c9774e180d151abaab358108e3510a8e615215. Upgrade Linux to 70c9774e180d151abaab358108e3510a8e615215 or later.

### How do I check if I'm affected by CVE-2021-47499?

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/8c1d43f3a3fc7184c42d7398bdf59a2a2903e4fc>
- patch: <https://git.kernel.org/stable/c/60a55b9d91ba99eb8cf015bc46dc2de05e168a15>
- patch: <https://git.kernel.org/stable/c/3899700ddacbf7aaafadf44464fff3ff0d4e3307>
- patch: <https://git.kernel.org/stable/c/a3730f74159ad00a28960c0efe2a931fe6fe6b45>
- patch: <https://git.kernel.org/stable/c/8c163a14277115ca962103910ab4cce55e862ffb>
- patch: <https://git.kernel.org/stable/c/ee86d0bad80bdcd11a87e188a596727f41b62320>
- patch: <https://git.kernel.org/stable/c/14508fe13b1c578b3d2ba574f1d48b351975860c>
- patch: <https://git.kernel.org/stable/c/70c9774e180d151abaab358108e3510a8e615215>

## 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-2021-47499>

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