# CVE-2023-53278: ubifs: Fix memory leak in ubifs_sysfs_init()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-09-16T08:11:12.997Z
- Modified: 2026-06-17T06:44:43.360Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

ubifs: Fix memory leak in ubifs_sysfs_init()

When insmod ubifs.ko, a kmemleak reported as below:

 unreferenced object 0xffff88817fb1a780 (size 8):
   comm "insmod", pid 25265, jiffies 4295239702 (age 100.130s)
   hex dump (first 8 bytes):
     75 62 69 66 73 00 ff ff                          ubifs...
   backtrace:
     [<ffffffff81b3fc4c>] slab_post_alloc_hook+0x9c/0x3c0
     [<ffffffff81b44bf3>] __kmalloc_track_caller+0x183/0x410
     [<ffffffff8198d3da>] kstrdup+0x3a/0x80
     [<ffffffff8198d486>] kstrdup_const+0x66/0x80
     [<ffffffff83989325>] kvasprintf_const+0x155/0x190
     [<ffffffff83bf55bb>] kobject_set_name_vargs+0x5b/0x150
     [<ffffffff83bf576b>] kobject_set_name+0xbb/0xf0
     [<ffffffff8100204c>] do_one_initcall+0x14c/0x5a0
     [<ffffffff8157e380>] do_init_module+0x1f0/0x660
     [<ffffffff815857be>] load_module+0x6d7e/0x7590
     [<ffffffff8158644f>] __do_sys_finit_module+0x19f/0x230
     [<ffffffff815866b3>] __x64_sys_finit_module+0x73/0xb0
     [<ffffffff88c98e85>] do_syscall_64+0x35/0x80
     [<ffffffff88e00087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

When kset_register() failed, we should call kset_put to cleanup it.

(As written by CVE List.)

## Affected

- Linux Linux: from 2e3cbf425804fb44a005e252f88f93dff108c911 before 1c5fdf2d4647219d2267ccb08c7f2c7095bf3450; from 2e3cbf425804fb44a005e252f88f93dff108c911 before d42c2b18c42da7378e67b6414aafe93b65de89d1; from 2e3cbf425804fb44a005e252f88f93dff108c911 before 203a55f04f66eea1a1ca7e5a302a7f5c99c62327; 5.17 (not affected: before 5.17; from 6.1.18 up to 6.1.*; from 6.2.5 up to 6.2.*; from 6.3 up to *)
- linux linux_kernel: from 5.17 before 6.1.18; from 6.2 before 6.2.5

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/1c5fdf2d4647219d2267ccb08c7f2c7095bf3450> (patch)
- <https://git.kernel.org/stable/c/d42c2b18c42da7378e67b6414aafe93b65de89d1> (patch)
- <https://git.kernel.org/stable/c/203a55f04f66eea1a1ca7e5a302a7f5c99c62327> (patch)

## Sources

- CVE List: [CVE-2023-53278](https://www.cve.org/CVERecord?id=CVE-2023-53278), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-53278](https://nvd.nist.gov/vuln/detail/CVE-2023-53278), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53278 · Whole record: https://cve.day/CVE-2023-53278.json · Rebuilt by cve.day 2026-11-25T22:58:34.809Z
