# CVE-2021-47455: ptp: Fix possible memory leak in ptp\_clock\_register()

> 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.34% (percentile 20, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2024-05-22T06:19:44.700Z
- **Modified:** 2026-06-17T04:17:30.790Z

## Who should check

- Anyone running Linux \>= a33121e5487b424339636b25c35d3a180eaa5f5e, \< f1c96d8085588e1b997a96214b409ac3be20b524; \>= a33121e5487b424339636b25c35d3a180eaa5f5e, \< 95c0a0c5ec8839f8f21672be786e87a100319ca8; \>= a33121e5487b424339636b25c35d3a180eaa5f5e, \< 4225fea1cb28370086e17e82c0f69bec2779dca0; 5230ef61882d2d14deb846eb6b48370694816e4c; 6f5e3bb7879ee1eb71c6c3cbaaffbb0da6cd7d57; 89e8fc989feaac00bf1a7f9a766289422e2f5768; 2dece4d6d13fe179ee3a5991811712725a56e2f7; 0393b8720128d5b39db8523e5bfbfc689f18c37c; bfa2e0cd3dfda64fde43c3dca3aeba298d2fe7ad; \>= 3.16.83, \< 3.17; …
- Anyone running Linux 5.5

## Description

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

ptp: Fix possible memory leak in ptp\_clock\_register()

I got memory leak as follows when doing fault injection test:

unreferenced object 0xffff88800906c618 (size 8):
  comm "i2c-idt82p33931", pid 4421, jiffies 4294948083 (age 13.188s)
  hex dump (first 8 bytes):
    70 74 70 30 00 00 00 00                          ptp0....
  backtrace:
    \[\<00000000312ed458\>\] \_\_kmalloc\_track\_caller+0x19f/0x3a0
    \[\<0000000079f6e2ff\>\] kvasprintf+0xb5/0x150
    \[\<0000000026aae54f\>\] kvasprintf\_const+0x60/0x190
    \[\<00000000f323a5f7\>\] kobject\_set\_name\_vargs+0x56/0x150
    \[\<000000004e35abdd\>\] dev\_set\_name+0xc0/0x100
    \[\<00000000f20cfe25\>\] ptp\_clock\_register+0x9f4/0xd30 \[ptp\]
    \[\<000000008bb9f0de\>\] idt82p33\_probe.cold+0x8b6/0x1561 \[ptp\_idt82p33\]

When posix\_clock\_register() returns an error, the name allocated
in dev\_set\_name() will be leaked, the put\_device() should be used
to give up the device reference, then the name will be freed in
kobject\_cleanup() and other memory will be freed in ptp\_clock\_release().

## Affected and fixed versions

- Linux: \>= a33121e5487b424339636b25c35d3a180eaa5f5e, \< f1c96d8085588e1b997a96214b409ac3be20b524; \>= a33121e5487b424339636b25c35d3a180eaa5f5e, \< 95c0a0c5ec8839f8f21672be786e87a100319ca8; \>= a33121e5487b424339636b25c35d3a180eaa5f5e, \< 4225fea1cb28370086e17e82c0f69bec2779dca0; 5230ef61882d2d14deb846eb6b48370694816e4c; 6f5e3bb7879ee1eb71c6c3cbaaffbb0da6cd7d57; 89e8fc989feaac00bf1a7f9a766289422e2f5768; 2dece4d6d13fe179ee3a5991811712725a56e2f7; 0393b8720128d5b39db8523e5bfbfc689f18c37c; bfa2e0cd3dfda64fde43c3dca3aeba298d2fe7ad; \>= 3.16.83, \< 3.17; … (cvelist)
- Linux: 5.5 (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-2021-47455. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47455.md
Affected: Linux >= a33121e5487b424339636b25c35d3a180eaa5f5e, < f1c96d8085588e1b997a96214b409ac3be20b524; >= a33121e5487b424339636b25c35d3a180eaa5f5e, < 95c0a0c5ec8839f8f21672be786e87a100319ca8; >= a33121e5487b424339636b25c35d3a180eaa5f5e, < 4225fea1cb28370086e17e82c0f69bec2779dca0; 5230ef61882d2d14deb846eb6b…
Fixed in: Linux 95c0a0c5ec8839f8f21672be786e87a100319ca8, Linux 4225fea1cb28370086e17e82c0f69bec2779dca0, Linux 3.17

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

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

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

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

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

Linux \>= a33121e5487b424339636b25c35d3a180eaa5f5e, \< f1c96d8085588e1b997a96214b409ac3be20b524; \>= a33121e5487b424339636b25c35d3a180eaa5f5e, \< 95c0a0c5ec8839f8f21672be786e87a100319ca8; \>= a33121e5487b424339636b25c35d3a180eaa5f5e, \< 4225fea1cb28370086e17e82c0f69bec2779dca0; 5230ef61882d2d14deb846eb6b48370694816e4c; 6f5e3bb7879ee1eb71c6c3cbaaffbb0da6cd7d57; 89e8fc989feaac00bf1a7f9a766289422e2f5768; 2dece4d6d13fe179ee3a5991811712725a56e2f7; 0393b8720128d5b39db8523e5bfbfc689f18c37c; bfa2e0cd3dfda64fde43c3dca3aeba298d2fe7ad; \>= 3.16.83, \< 3.17; …; Linux 5.5.

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

Yes. Fixed in Linux 95c0a0c5ec8839f8f21672be786e87a100319ca8, Linux 4225fea1cb28370086e17e82c0f69bec2779dca0, Linux 3.17. No fix listed yet: follow the vendor advisory.

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

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/95c0a0c5ec8839f8f21672be786e87a100319ca8>
- patch: <https://git.kernel.org/stable/c/4225fea1cb28370086e17e82c0f69bec2779dca0>
- other: <https://git.kernel.org/stable/c/f1c96d8085588e1b997a96214b409ac3be20b524>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

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

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