# CVE-2021-47237: net: hamradio: fix memory leak in mkiss\_close

> 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-21T14:19:38.396Z
- **Modified:** 2026-06-17T04:16:58.720Z

## Who should check

- Anyone running Linux \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< c634ba0b4159838ff45a60d3a0ace3b4118077a5; \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< 3942d0f9ace1a95a74930b5b4fc0e5005c62b37b; \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< 765a8a04f828db7222b36a42b1031f576bfe95c3; \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< c16c4716a1b5ba4f83c7e00da457cba06761f119; \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< a49cbb762ef20655f5c91abdc13658b0af5e159d; \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< 290b0b6432e2599021db0b8d6046f756d931c29f; \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< f4de2b43d13b7cf3ced9310e371b90c836dbd7cd; \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< 7edcc682301492380fbdd604b4516af5ae667a13
- Anyone running Linux 2.6.14

## Description

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

net: hamradio: fix memory leak in mkiss\_close

My local syzbot instance hit memory leak in
mkiss\_open()\[1\]. The problem was in missing
free\_netdev() in mkiss\_close().

In mkiss\_open() netdevice is allocated and then
registered, but in mkiss\_close() netdevice was
only unregistered, but not freed.

Fail log:

BUG: memory leak
unreferenced object 0xffff8880281ba000 (size 4096):
  comm "syz-executor.1", pid 11443, jiffies 4295046091 (age 17.660s)
  hex dump (first 32 bytes):
    61 78 30 00 00 00 00 00 00 00 00 00 00 00 00 00  ax0.............
    00 27 fa 2a 80 88 ff ff 00 00 00 00 00 00 00 00  .'.\*............
  backtrace:
    \[\<ffffffff81a27201\>\] kvmalloc\_node+0x61/0xf0
    \[\<ffffffff8706e7e8\>\] alloc\_netdev\_mqs+0x98/0xe80
    \[\<ffffffff84e64192\>\] mkiss\_open+0xb2/0x6f0 \[1\]
    \[\<ffffffff842355db\>\] tty\_ldisc\_open+0x9b/0x110
    \[\<ffffffff84236488\>\] tty\_set\_ldisc+0x2e8/0x670
    \[\<ffffffff8421f7f3\>\] tty\_ioctl+0xda3/0x1440
    \[\<ffffffff81c9f273\>\] \_\_x64\_sys\_ioctl+0x193/0x200
    \[\<ffffffff8911263a\>\] do\_syscall\_64+0x3a/0xb0
    \[\<ffffffff89200068\>\] entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae

BUG: memory leak
unreferenced object 0xffff8880141a9a00 (size 96):
  comm "syz-executor.1", pid 11443, jiffies 4295046091 (age 17.660s)
  hex dump (first 32 bytes):
    e8 a2 1b 28 80 88 ff ff e8 a2 1b 28 80 88 ff ff  ...(.......(....
    98 92 9c aa b0 40 02 00 00 00 00 00 00 00 00 00  .....@..........
  backtrace:
    \[\<ffffffff8709f68b\>\] \_\_hw\_addr\_create\_ex+0x5b/0x310
    \[\<ffffffff8709fb38\>\] \_\_hw\_addr\_add\_ex+0x1f8/0x2b0
    \[\<ffffffff870a0c7b\>\] dev\_addr\_init+0x10b/0x1f0
    \[\<ffffffff8706e88b\>\] alloc\_netdev\_mqs+0x13b/0xe80
    \[\<ffffffff84e64192\>\] mkiss\_open+0xb2/0x6f0 \[1\]
    \[\<ffffffff842355db\>\] tty\_ldisc\_open+0x9b/0x110
    \[\<ffffffff84236488\>\] tty\_set\_ldisc+0x2e8/0x670
    \[\<ffffffff8421f7f3\>\] tty\_ioctl+0xda3/0x1440
    \[\<ffffffff81c9f273\>\] \_\_x64\_sys\_ioctl+0x193/0x200
    \[\<ffffffff8911263a\>\] do\_syscall\_64+0x3a/0xb0
    \[\<ffffffff89200068\>\] entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae

BUG: memory leak
unreferenced object 0xffff8880219bfc00 (size 512):
  comm "syz-executor.1", pid 11443, jiffies 4295046091 (age 17.660s)
  hex dump (first 32 bytes):
    00 a0 1b 28 80 88 ff ff 80 8f b1 8d ff ff ff ff  ...(............
    80 8f b1 8d ff ff ff ff 00 00 00 00 00 00 00 00  ................
  backtrace:
    \[\<ffffffff81a27201\>\] kvmalloc\_node+0x61/0xf0
    \[\<ffffffff8706eec7\>\] alloc\_netdev\_mqs+0x777/0xe80
    \[\<ffffffff84e64192\>\] mkiss\_open+0xb2/0x6f0 \[1\]
    \[\<ffffffff842355db\>\] tty\_ldisc\_open+0x9b/0x110
    \[\<ffffffff84236488\>\] tty\_set\_ldisc+0x2e8/0x670
    \[\<ffffffff8421f7f3\>\] tty\_ioctl+0xda3/0x1440
    \[\<ffffffff81c9f273\>\] \_\_x64\_sys\_ioctl+0x193/0x200
    \[\<ffffffff8911263a\>\] do\_syscall\_64+0x3a/0xb0
    \[\<ffffffff89200068\>\] entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae

BUG: memory leak
unreferenced object 0xffff888029b2b200 (size 256):
  comm "syz-executor.1", pid 11443, jiffies 4295046091 (age 17.660s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    \[\<ffffffff81a27201\>\] kvmalloc\_node+0x61/0xf0
    \[\<ffffffff8706f062\>\] alloc\_netdev\_mqs+0x912/0xe80
    \[\<ffffffff84e64192\>\] mkiss\_open+0xb2/0x6f0 \[1\]
    \[\<ffffffff842355db\>\] tty\_ldisc\_open+0x9b/0x110
    \[\<ffffffff84236488\>\] tty\_set\_ldisc+0x2e8/0x670
    \[\<ffffffff8421f7f3\>\] tty\_ioctl+0xda3/0x1440
    \[\<ffffffff81c9f273\>\] \_\_x64\_sys\_ioctl+0x193/0x200
    \[\<ffffffff8911263a\>\] do\_syscall\_64+0x3a/0xb0
    \[\<ffffffff89200068\>\] entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae

## Affected and fixed versions

- Linux: \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< c634ba0b4159838ff45a60d3a0ace3b4118077a5; \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< 3942d0f9ace1a95a74930b5b4fc0e5005c62b37b; \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< 765a8a04f828db7222b36a42b1031f576bfe95c3; \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< c16c4716a1b5ba4f83c7e00da457cba06761f119; \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< a49cbb762ef20655f5c91abdc13658b0af5e159d; \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< 290b0b6432e2599021db0b8d6046f756d931c29f; \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< f4de2b43d13b7cf3ced9310e371b90c836dbd7cd; \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< 7edcc682301492380fbdd604b4516af5ae667a13 (cvelist)
- Linux: 2.6.14 (cvelist)

## Mitigation

- Upgrade Linux to 7edcc682301492380fbdd604b4516af5ae667a13 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-47237. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47237.md
Affected: Linux >= 815f62bf742718458ba822a7e1f51f285eb997f2, < c634ba0b4159838ff45a60d3a0ace3b4118077a5; >= 815f62bf742718458ba822a7e1f51f285eb997f2, < 3942d0f9ace1a95a74930b5b4fc0e5005c62b37b; >= 815f62bf742718458ba822a7e1f51f285eb997f2, < 765a8a04f828db7222b36a42b1031f576bfe95c3; >= 815f62bf742718458ba822a…
Fixed in: Linux 3942d0f9ace1a95a74930b5b4fc0e5005c62b37b, Linux 765a8a04f828db7222b36a42b1031f576bfe95c3, Linux 290b0b6432e2599021db0b8d6046f756d931c29f, Linux 7edcc682301492380fbdd604b4516af5ae667a13

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

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

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

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

Linux \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< c634ba0b4159838ff45a60d3a0ace3b4118077a5; \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< 3942d0f9ace1a95a74930b5b4fc0e5005c62b37b; \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< 765a8a04f828db7222b36a42b1031f576bfe95c3; \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< c16c4716a1b5ba4f83c7e00da457cba06761f119; \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< a49cbb762ef20655f5c91abdc13658b0af5e159d; \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< 290b0b6432e2599021db0b8d6046f756d931c29f; \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< f4de2b43d13b7cf3ced9310e371b90c836dbd7cd; \>= 815f62bf742718458ba822a7e1f51f285eb997f2, \< 7edcc682301492380fbdd604b4516af5ae667a13; Linux 2.6.14.

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

Yes. Fixed in Linux 3942d0f9ace1a95a74930b5b4fc0e5005c62b37b, Linux 765a8a04f828db7222b36a42b1031f576bfe95c3, Linux 290b0b6432e2599021db0b8d6046f756d931c29f, Linux 7edcc682301492380fbdd604b4516af5ae667a13. Upgrade Linux to 7edcc682301492380fbdd604b4516af5ae667a13 or later.

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

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/c634ba0b4159838ff45a60d3a0ace3b4118077a5>
- patch: <https://git.kernel.org/stable/c/3942d0f9ace1a95a74930b5b4fc0e5005c62b37b>
- patch: <https://git.kernel.org/stable/c/765a8a04f828db7222b36a42b1031f576bfe95c3>
- patch: <https://git.kernel.org/stable/c/c16c4716a1b5ba4f83c7e00da457cba06761f119>
- patch: <https://git.kernel.org/stable/c/a49cbb762ef20655f5c91abdc13658b0af5e159d>
- patch: <https://git.kernel.org/stable/c/290b0b6432e2599021db0b8d6046f756d931c29f>
- patch: <https://git.kernel.org/stable/c/f4de2b43d13b7cf3ced9310e371b90c836dbd7cd>
- patch: <https://git.kernel.org/stable/c/7edcc682301492380fbdd604b4516af5ae667a13>

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

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