{"id":"CVE-2023-53468","aliases":["CVE-2023-53468"],"related":[],"kind":"vulnerability","state":"published","title":"ubifs: Fix memory leak in alloc_wbufs()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nubifs: Fix memory leak in alloc_wbufs()\n\nkmemleak reported a sequence of memory leaks, and show them as following:\n\n  unreferenced object 0xffff8881575f8400 (size 1024):\n    comm \"mount\", pid 19625, jiffies 4297119604 (age 20.383s)\n    hex dump (first 32 bytes):\n      00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\n      00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\n    backtrace:\n      [<ffffffff8176cecd>] __kmalloc+0x4d/0x150\n      [<ffffffffa0406b2b>] ubifs_mount+0x307b/0x7170 [ubifs]\n      [<ffffffff819fa8fd>] legacy_get_tree+0xed/0x1d0\n      [<ffffffff81936f2d>] vfs_get_tree+0x7d/0x230\n      [<ffffffff819b2bd4>] path_mount+0xdd4/0x17b0\n      [<ffffffff819b37aa>] __x64_sys_mount+0x1fa/0x270\n      [<ffffffff83c14295>] do_syscall_64+0x35/0x80\n      [<ffffffff83e0006a>] entry_SYSCALL_64_after_hwframe+0x46/0xb0\n\n  unreferenced object 0xffff8881798a6e00 (size 512):\n    comm \"mount\", pid 19677, jiffies 4297121912 (age 37.816s)\n    hex dump (first 32 bytes):\n      6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b  kkkkkkkkkkkkkkkk\n      6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b  kkkkkkkkkkkkkkkk\n    backtrace:\n      [<ffffffff8176cecd>] __kmalloc+0x4d/0x150\n      [<ffffffffa0418342>] ubifs_wbuf_init+0x52/0x480 [ubifs]\n      [<ffffffffa0406ca5>] ubifs_mount+0x31f5/0x7170 [ubifs]\n      [<ffffffff819fa8fd>] legacy_get_tree+0xed/0x1d0\n      [<ffffffff81936f2d>] vfs_get_tree+0x7d/0x230\n      [<ffffffff819b2bd4>] path_mount+0xdd4/0x17b0\n      [<ffffffff819b37aa>] __x64_sys_mount+0x1fa/0x270\n      [<ffffffff83c14295>] do_syscall_64+0x35/0x80\n      [<ffffffff83e0006a>] entry_SYSCALL_64_after_hwframe+0x46/0xb0\n\nThe problem is that the ubifs_wbuf_init() returns an error in the\nloop which in the alloc_wbufs(), then the wbuf->buf and wbuf->inodes\nthat were successfully alloced before are not freed.\n\nFix it by adding error hanging path in alloc_wbufs() which frees\nthe memory alloced before when ubifs_wbuf_init() returns an error.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nubifs: Fix memory leak in alloc_wbufs()\n\nkmemleak reported a sequence of memory leaks, and show them as following:\n\n  unreferenced object 0xffff8881575f8400 (size 1024):\n    comm \"mount\", pid 19625, jiffies 4297119604 (age 20.383s)\n    hex dump (first 32 bytes):\n      00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\n      00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\n    backtrace:\n      [<ffffffff8176cecd>] __kmalloc+0x4d/0x150\n      [<ffffffffa0406b2b>] ubifs_mount+0x307b/0x7170 [ubifs]\n      [<ffffffff819fa8fd>] legacy_get_tree+0xed/0x1d0\n      [<ffffffff81936f2d>] vfs_get_tree+0x7d/0x230\n      [<ffffffff819b2bd4>] path_mount+0xdd4/0x17b0\n      [<ffffffff819b37aa>] __x64_sys_mount+0x1fa/0x270\n      [<ffffffff83c14295>] do_syscall_64+0x35/0x80\n      [<ffffffff83e0006a>] entry_SYSCALL_64_after_hwframe+0x46/0xb0\n\n  unreferenced object 0xffff8881798a6e00 (size 512):\n    comm \"mount\", pid 19677, jiffies 4297121912 (age 37.816s)\n    hex dump (first 32 bytes):\n      6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b  kkkkkkkkkkkkkkkk\n      6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b  kkkkkkkkkkkkkkkk\n    backtrace:\n      [<ffffffff8176cecd>] __kmalloc+0x4d/0x150\n      [<ffffffffa0418342>] ubifs_wbuf_init+0x52/0x480 [ubifs]\n      [<ffffffffa0406ca5>] ubifs_mount+0x31f5/0x7170 [ubifs]\n      [<ffffffff819fa8fd>] legacy_get_tree+0xed/0x1d0\n      [<ffffffff81936f2d>] vfs_get_tree+0x7d/0x230\n      [<ffffffff819b2bd4>] path_mount+0xdd4/0x17b0\n      [<ffffffff819b37aa>] __x64_sys_mount+0x1fa/0x270\n      [<ffffffff83c14295>] do_syscall_64+0x35/0x80\n      [<ffffffff83e0006a>] entry_SYSCALL_64_after_hwframe+0x46/0xb0\n\nThe problem is that the ubifs_wbuf_init() returns an error in the\nloop which in the alloc_wbufs(), then the wbuf->buf and wbuf->inodes\nthat were successfully alloced before are not freed.\n\nFix it by adding error hanging path in alloc_wbufs() which frees\nthe memory alloced before when ubifs_wbuf_init() returns an error.","source":"cvelist"}],"published":"2025-10-01T11:42:38.673Z","modified":"2026-06-17T06:45:24.653Z","severity":{"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"},"severities":[{"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":"1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d","fixed":"1f206002c6bc302bface871ef3f72c0bbcaa931c","status":"affected"},{"type":"git","introduced":"1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d","fixed":"bf50229494f0443b3f08427d7df63e5a7e2a796a","status":"affected"},{"type":"git","introduced":"1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d","fixed":"3e29634eb56e6547272fe4e568f63421f8b3b9fa","status":"affected"},{"type":"git","introduced":"1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d","fixed":"26ec45f1c504e15268383019df139d7983f1e67f","status":"affected"},{"type":"git","introduced":"1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d","fixed":"e11f36d3bc4d23f620754a948fe7b82b63dcb185","status":"affected"},{"type":"git","introduced":"1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d","fixed":"4a1ff3c5d04b9079b4f768d9a71b51c4af578dd2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.27","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.27","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":"2.6.27","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/1f206002c6bc302bface871ef3f72c0bbcaa931c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bf50229494f0443b3f08427d7df63e5a7e2a796a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3e29634eb56e6547272fe4e568f63421f8b3b9fa","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/26ec45f1c504e15268383019df139d7983f1e67f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e11f36d3bc4d23f620754a948fe7b82b63dcb185","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4a1ff3c5d04b9079b4f768d9a71b51c4af578dd2","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53468","url":"https://www.cve.org/CVERecord?id=CVE-2023-53468","licence":"CVE Terms of Use","modified":"2026-05-11T19:45:35.279Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53468","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53468","licence":"Public domain","modified":"2026-06-17T06:45:24.653Z"}],"updatedAt":"2026-11-25T22:58:34.897Z","epss":{"score":0.00166,"percentile":0.06158,"date":"2026-12-01T12:00:22.000Z"}}