{"id":"CVE-2023-53234","aliases":["CVE-2023-53234"],"related":[],"kind":"vulnerability","state":"published","title":"watchdog: Fix kmemleak in watchdog_cdev_register","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nwatchdog: Fix kmemleak in watchdog_cdev_register\n\nkmemleak reports memory leaks in watchdog_dev_register, as follows:\nunreferenced object 0xffff888116233000 (size 2048):\n  comm \"\"modprobe\"\", pid 28147, jiffies 4353426116 (age 61.741s)\n  hex dump (first 32 bytes):\n    80 fa b9 05 81 88 ff ff 08 30 23 16 81 88 ff ff  .........0#.....\n    08 30 23 16 81 88 ff ff 00 00 00 00 00 00 00 00  .0#.............\n  backtrace:\n    [<000000007f001ffd>] __kmem_cache_alloc_node+0x157/0x220\n    [<000000006a389304>] kmalloc_trace+0x21/0x110\n    [<000000008d640eea>] watchdog_dev_register+0x4e/0x780 [watchdog]\n    [<0000000053c9f248>] __watchdog_register_device+0x4f0/0x680 [watchdog]\n    [<00000000b2979824>] watchdog_register_device+0xd2/0x110 [watchdog]\n    [<000000001f730178>] 0xffffffffc10880ae\n    [<000000007a1a8bcc>] do_one_initcall+0xcb/0x4d0\n    [<00000000b98be325>] do_init_module+0x1ca/0x5f0\n    [<0000000046d08e7c>] load_module+0x6133/0x70f0\n    ...\n\nunreferenced object 0xffff888105b9fa80 (size 16):\n  comm \"\"modprobe\"\", pid 28147, jiffies 4353426116 (age 61.741s)\n  hex dump (first 16 bytes):\n    77 61 74 63 68 64 6f 67 31 00 b9 05 81 88 ff ff  watchdog1.......\n  backtrace:\n    [<000000007f001ffd>] __kmem_cache_alloc_node+0x157/0x220\n    [<00000000486ab89b>] __kmalloc_node_track_caller+0x44/0x1b0\n    [<000000005a39aab0>] kvasprintf+0xb5/0x140\n    [<0000000024806f85>] kvasprintf_const+0x55/0x180\n    [<000000009276cb7f>] kobject_set_name_vargs+0x56/0x150\n    [<00000000a92e820b>] dev_set_name+0xab/0xe0\n    [<00000000cec812c6>] watchdog_dev_register+0x285/0x780 [watchdog]\n    [<0000000053c9f248>] __watchdog_register_device+0x4f0/0x680 [watchdog]\n    [<00000000b2979824>] watchdog_register_device+0xd2/0x110 [watchdog]\n    [<000000001f730178>] 0xffffffffc10880ae\n    [<000000007a1a8bcc>] do_one_initcall+0xcb/0x4d0\n    [<00000000b98be325>] do_init_module+0x1ca/0x5f0\n    [<0000000046d08e7c>] load_module+0x6133/0x70f0\n    ...\n\nThe reason is that put_device is not be called if cdev_device_add fails\nand wdd->id != 0.\n\nwatchdog_cdev_register\n  wd_data = kzalloc                             [1]\n  err = dev_set_name                            [2]\n  ..\n  err = cdev_device_add\n  if (err) {\n    if (wdd->id == 0) {  // wdd->id != 0\n      ..\n    }\n    return err;  // [1],[2] would be leaked\n\nTo fix it, call put_device in all wdd->id cases.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nwatchdog: Fix kmemleak in watchdog_cdev_register\n\nkmemleak reports memory leaks in watchdog_dev_register, as follows:\nunreferenced object 0xffff888116233000 (size 2048):\n  comm \"\"modprobe\"\", pid 28147, jiffies 4353426116 (age 61.741s)\n  hex dump (first 32 bytes):\n    80 fa b9 05 81 88 ff ff 08 30 23 16 81 88 ff ff  .........0#.....\n    08 30 23 16 81 88 ff ff 00 00 00 00 00 00 00 00  .0#.............\n  backtrace:\n    [<000000007f001ffd>] __kmem_cache_alloc_node+0x157/0x220\n    [<000000006a389304>] kmalloc_trace+0x21/0x110\n    [<000000008d640eea>] watchdog_dev_register+0x4e/0x780 [watchdog]\n    [<0000000053c9f248>] __watchdog_register_device+0x4f0/0x680 [watchdog]\n    [<00000000b2979824>] watchdog_register_device+0xd2/0x110 [watchdog]\n    [<000000001f730178>] 0xffffffffc10880ae\n    [<000000007a1a8bcc>] do_one_initcall+0xcb/0x4d0\n    [<00000000b98be325>] do_init_module+0x1ca/0x5f0\n    [<0000000046d08e7c>] load_module+0x6133/0x70f0\n    ...\n\nunreferenced object 0xffff888105b9fa80 (size 16):\n  comm \"\"modprobe\"\", pid 28147, jiffies 4353426116 (age 61.741s)\n  hex dump (first 16 bytes):\n    77 61 74 63 68 64 6f 67 31 00 b9 05 81 88 ff ff  watchdog1.......\n  backtrace:\n    [<000000007f001ffd>] __kmem_cache_alloc_node+0x157/0x220\n    [<00000000486ab89b>] __kmalloc_node_track_caller+0x44/0x1b0\n    [<000000005a39aab0>] kvasprintf+0xb5/0x140\n    [<0000000024806f85>] kvasprintf_const+0x55/0x180\n    [<000000009276cb7f>] kobject_set_name_vargs+0x56/0x150\n    [<00000000a92e820b>] dev_set_name+0xab/0xe0\n    [<00000000cec812c6>] watchdog_dev_register+0x285/0x780 [watchdog]\n    [<0000000053c9f248>] __watchdog_register_device+0x4f0/0x680 [watchdog]\n    [<00000000b2979824>] watchdog_register_device+0xd2/0x110 [watchdog]\n    [<000000001f730178>] 0xffffffffc10880ae\n    [<000000007a1a8bcc>] do_one_initcall+0xcb/0x4d0\n    [<00000000b98be325>] do_init_module+0x1ca/0x5f0\n    [<0000000046d08e7c>] load_module+0x6133/0x70f0\n    ...\n\nThe reason is that put_device is not be called if cdev_device_add fails\nand wdd->id != 0.\n\nwatchdog_cdev_register\n  wd_data = kzalloc                             [1]\n  err = dev_set_name                            [2]\n  ..\n  err = cdev_device_add\n  if (err) {\n    if (wdd->id == 0) {  // wdd->id != 0\n      ..\n    }\n    return err;  // [1],[2] would be leaked\n\nTo fix it, call put_device in all wdd->id cases.","source":"cvelist"}],"published":"2025-09-15T14:22:07.219Z","modified":"2026-06-17T06:44:35.080Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"450caf1faa0d7bbbd1da93d3ee8c5edea7bc51a8","fixed":"bf26b0e430ce34261f45959989edaf680b64d538","status":"affected"},{"type":"git","introduced":"f4c36f1999745c2160422fe2f362deadbe3a136b","fixed":"8c1655600f4f2839fb844fe8c70b2b65fadc7a56","status":"affected"},{"type":"git","introduced":"ca7851d46de8a8d69022c4e5feed0820483b5f46","fixed":"59e391b3fc507a15b7e8e9d9f4de87cae177c366","status":"affected"},{"type":"git","introduced":"72139dfa2464e43957d330266994740bb7be2535","fixed":"c5a21a5501508ae3afa2fe6d5a3e74a37fa48df3","status":"affected"},{"type":"git","introduced":"72139dfa2464e43957d330266994740bb7be2535","fixed":"23cc41c3f19c4d858c3708f1c0a06e94958e6c3b","status":"affected"},{"type":"git","introduced":"72139dfa2464e43957d330266994740bb7be2535","fixed":"ac099d94e0480c937aa9172ab64074981ca1a4d3","status":"affected"},{"type":"git","introduced":"72139dfa2464e43957d330266994740bb7be2535","fixed":"50808d034e199fe3ff7a9d2068a4eebeb6b4098a","status":"affected"},{"type":"git","introduced":"72139dfa2464e43957d330266994740bb7be2535","fixed":"13721a2ac66b246f5802ba1b75ad8637e53eeecc","status":"affected"},{"type":"git","version":"f76905ce52653e8a821963c35d9013cff19b1399","status":"affected"},{"type":"semver","introduced":"4.14.182","fixed":"4.14.308","status":"affected"},{"type":"semver","introduced":"4.19.93","fixed":"4.19.276","status":"affected"},{"type":"semver","introduced":"5.4.8","fixed":"5.4.235","status":"affected"},{"type":"semver","introduced":"4.9.225","fixed":"4.10","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.5","status":"unaffected"},{"type":"semver","introduced":"4.14.308","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.276","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.235","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.173","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.100","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.18","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.2.5","lastAffected":"6.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.9.225","fixed":"4.10"},{"status":"affected","introduced":"4.14.182","fixed":"4.14.308"},{"status":"affected","introduced":"4.19.93","fixed":"4.19.276"},{"status":"affected","introduced":"5.4.8","fixed":"5.4.235"},{"status":"affected","introduced":"5.5","fixed":"5.10.173"},{"status":"affected","introduced":"5.11","fixed":"5.15.100"},{"status":"affected","introduced":"5.16","fixed":"6.1.18"},{"status":"affected","introduced":"6.2","fixed":"6.2.5"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/bf26b0e430ce34261f45959989edaf680b64d538","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8c1655600f4f2839fb844fe8c70b2b65fadc7a56","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/59e391b3fc507a15b7e8e9d9f4de87cae177c366","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c5a21a5501508ae3afa2fe6d5a3e74a37fa48df3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/23cc41c3f19c4d858c3708f1c0a06e94958e6c3b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ac099d94e0480c937aa9172ab64074981ca1a4d3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/50808d034e199fe3ff7a9d2068a4eebeb6b4098a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/13721a2ac66b246f5802ba1b75ad8637e53eeecc","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-01-14T17:55:57.957Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53234","url":"https://www.cve.org/CVERecord?id=CVE-2023-53234","licence":"CVE Terms of Use","modified":"2026-05-23T15:28:21.133Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53234","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53234","licence":"Public domain","modified":"2026-06-17T06:44:35.080Z"}],"updatedAt":"2026-11-25T22:58:34.788Z","epss":{"score":0.00166,"percentile":0.06157,"date":"2026-12-01T12:00:22.000Z"}}