# CVE-2023-53234: watchdog: Fix kmemleak in watchdog\_cdev\_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, CNA) `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.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-09-15T14:22:07.219Z
- **Modified:** 2026-06-17T06:44:35.080Z

## Who should check

- Anyone running Linux \>= 450caf1faa0d7bbbd1da93d3ee8c5edea7bc51a8, \< bf26b0e430ce34261f45959989edaf680b64d538; \>= f4c36f1999745c2160422fe2f362deadbe3a136b, \< 8c1655600f4f2839fb844fe8c70b2b65fadc7a56; \>= ca7851d46de8a8d69022c4e5feed0820483b5f46, \< 59e391b3fc507a15b7e8e9d9f4de87cae177c366; \>= 72139dfa2464e43957d330266994740bb7be2535, \< c5a21a5501508ae3afa2fe6d5a3e74a37fa48df3; \>= 72139dfa2464e43957d330266994740bb7be2535, \< 23cc41c3f19c4d858c3708f1c0a06e94958e6c3b; \>= 72139dfa2464e43957d330266994740bb7be2535, \< ac099d94e0480c937aa9172ab64074981ca1a4d3; \>= 72139dfa2464e43957d330266994740bb7be2535, \< 50808d034e199fe3ff7a9d2068a4eebeb6b4098a; \>= 72139dfa2464e43957d330266994740bb7be2535, \< 13721a2ac66b246f5802ba1b75ad8637e53eeecc; f76905ce52653e8a821963c35d9013cff19b1399; \>= 4.14.182, \< 4.14.308; …
- Anyone running Linux 5.5

## Description

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

watchdog: Fix kmemleak in watchdog\_cdev\_register

kmemleak reports memory leaks in watchdog\_dev\_register, as follows:
unreferenced object 0xffff888116233000 (size 2048):
  comm ""modprobe"", pid 28147, jiffies 4353426116 (age 61.741s)
  hex dump (first 32 bytes):
    80 fa b9 05 81 88 ff ff 08 30 23 16 81 88 ff ff  .........0\#.....
    08 30 23 16 81 88 ff ff 00 00 00 00 00 00 00 00  .0\#.............
  backtrace:
    \[\<000000007f001ffd\>\] \_\_kmem\_cache\_alloc\_node+0x157/0x220
    \[\<000000006a389304\>\] kmalloc\_trace+0x21/0x110
    \[\<000000008d640eea\>\] watchdog\_dev\_register+0x4e/0x780 \[watchdog\]
    \[\<0000000053c9f248\>\] \_\_watchdog\_register\_device+0x4f0/0x680 \[watchdog\]
    \[\<00000000b2979824\>\] watchdog\_register\_device+0xd2/0x110 \[watchdog\]
    \[\<000000001f730178\>\] 0xffffffffc10880ae
    \[\<000000007a1a8bcc\>\] do\_one\_initcall+0xcb/0x4d0
    \[\<00000000b98be325\>\] do\_init\_module+0x1ca/0x5f0
    \[\<0000000046d08e7c\>\] load\_module+0x6133/0x70f0
    ...

unreferenced object 0xffff888105b9fa80 (size 16):
  comm ""modprobe"", pid 28147, jiffies 4353426116 (age 61.741s)
  hex dump (first 16 bytes):
    77 61 74 63 68 64 6f 67 31 00 b9 05 81 88 ff ff  watchdog1.......
  backtrace:
    \[\<000000007f001ffd\>\] \_\_kmem\_cache\_alloc\_node+0x157/0x220
    \[\<00000000486ab89b\>\] \_\_kmalloc\_node\_track\_caller+0x44/0x1b0
    \[\<000000005a39aab0\>\] kvasprintf+0xb5/0x140
    \[\<0000000024806f85\>\] kvasprintf\_const+0x55/0x180
    \[\<000000009276cb7f\>\] kobject\_set\_name\_vargs+0x56/0x150
    \[\<00000000a92e820b\>\] dev\_set\_name+0xab/0xe0
    \[\<00000000cec812c6\>\] watchdog\_dev\_register+0x285/0x780 \[watchdog\]
    \[\<0000000053c9f248\>\] \_\_watchdog\_register\_device+0x4f0/0x680 \[watchdog\]
    \[\<00000000b2979824\>\] watchdog\_register\_device+0xd2/0x110 \[watchdog\]
    \[\<000000001f730178\>\] 0xffffffffc10880ae
    \[\<000000007a1a8bcc\>\] do\_one\_initcall+0xcb/0x4d0
    \[\<00000000b98be325\>\] do\_init\_module+0x1ca/0x5f0
    \[\<0000000046d08e7c\>\] load\_module+0x6133/0x70f0
    ...

The reason is that put\_device is not be called if cdev\_device\_add fails
and wdd-\>id != 0.

watchdog\_cdev\_register
  wd\_data = kzalloc                             \[1\]
  err = dev\_set\_name                            \[2\]
  ..
  err = cdev\_device\_add
  if (err) {
    if (wdd-\>id == 0) {  // wdd-\>id != 0
      ..
    }
    return err;  // \[1\],\[2\] would be leaked

To fix it, call put\_device in all wdd-\>id cases.

## Affected and fixed versions

- Linux: \>= 450caf1faa0d7bbbd1da93d3ee8c5edea7bc51a8, \< bf26b0e430ce34261f45959989edaf680b64d538; \>= f4c36f1999745c2160422fe2f362deadbe3a136b, \< 8c1655600f4f2839fb844fe8c70b2b65fadc7a56; \>= ca7851d46de8a8d69022c4e5feed0820483b5f46, \< 59e391b3fc507a15b7e8e9d9f4de87cae177c366; \>= 72139dfa2464e43957d330266994740bb7be2535, \< c5a21a5501508ae3afa2fe6d5a3e74a37fa48df3; \>= 72139dfa2464e43957d330266994740bb7be2535, \< 23cc41c3f19c4d858c3708f1c0a06e94958e6c3b; \>= 72139dfa2464e43957d330266994740bb7be2535, \< ac099d94e0480c937aa9172ab64074981ca1a4d3; \>= 72139dfa2464e43957d330266994740bb7be2535, \< 50808d034e199fe3ff7a9d2068a4eebeb6b4098a; \>= 72139dfa2464e43957d330266994740bb7be2535, \< 13721a2ac66b246f5802ba1b75ad8637e53eeecc; f76905ce52653e8a821963c35d9013cff19b1399; \>= 4.14.182, \< 4.14.308; … (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-2023-53234. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53234.md
Affected: Linux >= 450caf1faa0d7bbbd1da93d3ee8c5edea7bc51a8, < bf26b0e430ce34261f45959989edaf680b64d538; >= f4c36f1999745c2160422fe2f362deadbe3a136b, < 8c1655600f4f2839fb844fe8c70b2b65fadc7a56; >= ca7851d46de8a8d69022c4e5feed0820483b5f46, < 59e391b3fc507a15b7e8e9d9f4de87cae177c366; >= 72139dfa2464e43957d3302…
Fixed in: Linux 8c1655600f4f2839fb844fe8c70b2b65fadc7a56, Linux 59e391b3fc507a15b7e8e9d9f4de87cae177c366, Linux 23cc41c3f19c4d858c3708f1c0a06e94958e6c3b, Linux 50808d034e199fe3ff7a9d2068a4eebeb6b4098a, Linux 13721a2ac66b246f5802ba1b75ad8637e53eeecc, Linux 4.14.308

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-2023-53234 being exploited?

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

### How serious is CVE-2023-53234?

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

### Which versions are affected by CVE-2023-53234?

Linux \>= 450caf1faa0d7bbbd1da93d3ee8c5edea7bc51a8, \< bf26b0e430ce34261f45959989edaf680b64d538; \>= f4c36f1999745c2160422fe2f362deadbe3a136b, \< 8c1655600f4f2839fb844fe8c70b2b65fadc7a56; \>= ca7851d46de8a8d69022c4e5feed0820483b5f46, \< 59e391b3fc507a15b7e8e9d9f4de87cae177c366; \>= 72139dfa2464e43957d330266994740bb7be2535, \< c5a21a5501508ae3afa2fe6d5a3e74a37fa48df3; \>= 72139dfa2464e43957d330266994740bb7be2535, \< 23cc41c3f19c4d858c3708f1c0a06e94958e6c3b; \>= 72139dfa2464e43957d330266994740bb7be2535, \< ac099d94e0480c937aa9172ab64074981ca1a4d3; \>= 72139dfa2464e43957d330266994740bb7be2535, \< 50808d034e199fe3ff7a9d2068a4eebeb6b4098a; \>= 72139dfa2464e43957d330266994740bb7be2535, \< 13721a2ac66b246f5802ba1b75ad8637e53eeecc; f76905ce52653e8a821963c35d9013cff19b1399; \>= 4.14.182, \< 4.14.308; …; Linux 5.5.

### Is there a fix for CVE-2023-53234?

Yes. Fixed in Linux 8c1655600f4f2839fb844fe8c70b2b65fadc7a56, Linux 59e391b3fc507a15b7e8e9d9f4de87cae177c366, Linux 23cc41c3f19c4d858c3708f1c0a06e94958e6c3b, Linux 50808d034e199fe3ff7a9d2068a4eebeb6b4098a, Linux 13721a2ac66b246f5802ba1b75ad8637e53eeecc, Linux 4.14.308. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-53234?

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/bf26b0e430ce34261f45959989edaf680b64d538>
- patch: <https://git.kernel.org/stable/c/8c1655600f4f2839fb844fe8c70b2b65fadc7a56>
- patch: <https://git.kernel.org/stable/c/59e391b3fc507a15b7e8e9d9f4de87cae177c366>
- patch: <https://git.kernel.org/stable/c/c5a21a5501508ae3afa2fe6d5a3e74a37fa48df3>
- patch: <https://git.kernel.org/stable/c/23cc41c3f19c4d858c3708f1c0a06e94958e6c3b>
- patch: <https://git.kernel.org/stable/c/ac099d94e0480c937aa9172ab64074981ca1a4d3>
- patch: <https://git.kernel.org/stable/c/50808d034e199fe3ff7a9d2068a4eebeb6b4098a>
- patch: <https://git.kernel.org/stable/c/13721a2ac66b246f5802ba1b75ad8637e53eeecc>

## 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-2023-53234>

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