CVE-2023-53234
watchdog: Fix kmemleak in watchdog_cdev_register
Check your servers for CVE-2023-53234
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-53234 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.16% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 14 Jan 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-401 Missing Release of Memory after Effective Lifetime
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 450caf1faa0d7bbbd1da93d3ee8c5edea7bc51a8, before bf26b0e430ce34261f45959989edaf680b64d538 affected from f4c36f1999745c2160422fe2f362deadbe3a136b, before 8c1655600f4f2839fb844fe8c70b2b65fadc7a56 affected from ca7851d46de8a8d69022c4e5feed0820483b5f46, before 59e391b3fc507a15b7e8e9d9f4de87cae177c366 affected from 72139dfa2464e43957d330266994740bb7be2535, before c5a21a5501508ae3afa2fe6d5a3e74a37fa48df3 affected from 72139dfa2464e43957d330266994740bb7be2535, before 23cc41c3f19c4d858c3708f1c0a06e94958e6c3b affected from 72139dfa2464e43957d330266994740bb7be2535, before ac099d94e0480c937aa9172ab64074981ca1a4d3 affected from 72139dfa2464e43957d330266994740bb7be2535, before 50808d034e199fe3ff7a9d2068a4eebeb6b4098a affected from 72139dfa2464e43957d330266994740bb7be2535, before 13721a2ac66b246f5802ba1b75ad8637e53eeecc affected f76905ce52653e8a821963c35d9013cff19b1399 affected from 4.14.182, before 4.14.308 affected from 4.19.93, before 4.19.276 affected from 5.4.8, before 5.4.235 affected from 4.9.225, before 4.10
Other versions: unaffected
|
| Linux |
affected 5.5 unaffected before 5.5 unaffected from 4.14.308 up to and including 4.14.* unaffected from 4.19.276 up to and including 4.19.* unaffected from 5.4.235 up to and including 5.4.* unaffected from 5.10.173 up to and including 5.10.* unaffected from 5.15.100 up to and including 5.15.* unaffected from 6.1.18 up to and including 6.1.* unaffected from 6.2.5 up to and including 6.2.* unaffected 6.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-53234 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-53234
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-53234
trivy image --scanners vuln IMAGE | grep CVE-2023-53234
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/bf26b0e430ce34261f45959989edaf680b64d538 git.kernel.org
- https://git.kernel.org/stable/c/8c1655600f4f2839fb844fe8c70b2b65fadc7a56 git.kernel.org
- https://git.kernel.org/stable/c/59e391b3fc507a15b7e8e9d9f4de87cae177c366 git.kernel.org
- https://git.kernel.org/stable/c/c5a21a5501508ae3afa2fe6d5a3e74a37fa48df3 git.kernel.org
- https://git.kernel.org/stable/c/23cc41c3f19c4d858c3708f1c0a06e94958e6c3b git.kernel.org
- https://git.kernel.org/stable/c/ac099d94e0480c937aa9172ab64074981ca1a4d3 git.kernel.org
- https://git.kernel.org/stable/c/50808d034e199fe3ff7a9d2068a4eebeb6b4098a git.kernel.org
- https://git.kernel.org/stable/c/13721a2ac66b246f5802ba1b75ad8637e53eeecc git.kernel.org
Source: the record CVE-2023-53234 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse