{"id":"CVE-2023-53396","aliases":["CVE-2023-53396"],"related":[],"kind":"vulnerability","state":"published","title":"ubifs: Fix memory leak in do_rename","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nubifs: Fix memory leak in do_rename\n\nIf renaming a file in an encrypted directory, function\nfscrypt_setup_filename allocates memory for a file name. This name is\nnever used, and before returning to the caller the memory for it is not\nfreed.\n\nWhen running kmemleak on it we see that it is registered as a leak. The\nreport below is triggered by a simple program 'rename' that renames a\nfile in an encrypted directory:\n\n  unreferenced object 0xffff888101502840 (size 32):\n    comm \"rename\", pid 9404, jiffies 4302582475 (age 435.735s)\n    backtrace:\n      __kmem_cache_alloc_node\n      __kmalloc\n      fscrypt_setup_filename\n      do_rename\n      ubifs_rename\n      vfs_rename\n      do_renameat2\n\nTo fix this we can remove the call to fscrypt_setup_filename as it's not\nneeded.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nubifs: Fix memory leak in do_rename\n\nIf renaming a file in an encrypted directory, function\nfscrypt_setup_filename allocates memory for a file name. This name is\nnever used, and before returning to the caller the memory for it is not\nfreed.\n\nWhen running kmemleak on it we see that it is registered as a leak. The\nreport below is triggered by a simple program 'rename' that renames a\nfile in an encrypted directory:\n\n  unreferenced object 0xffff888101502840 (size 32):\n    comm \"rename\", pid 9404, jiffies 4302582475 (age 435.735s)\n    backtrace:\n      __kmem_cache_alloc_node\n      __kmalloc\n      fscrypt_setup_filename\n      do_rename\n      ubifs_rename\n      vfs_rename\n      do_renameat2\n\nTo fix this we can remove the call to fscrypt_setup_filename as it's not\nneeded.","source":"cvelist"}],"published":"2025-09-18T13:33:37.360Z","modified":"2026-06-17T06:45:12.623Z","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":"c67bc98d1f0853bb196e9c48eab38b6f2ddab795","fixed":"43b2f7d690697182beed6f71aa57b7249d3cfc9c","status":"affected"},{"type":"git","introduced":"278d9a243635f26c05ad95dcf9c5a593b9e04dc6","fixed":"9f565752b328fe53c9e42b7d4e4d89a1da63d738","status":"affected"},{"type":"git","introduced":"278d9a243635f26c05ad95dcf9c5a593b9e04dc6","fixed":"7e264f67b7d6580eff5c2696961039fd05c69258","status":"affected"},{"type":"git","introduced":"278d9a243635f26c05ad95dcf9c5a593b9e04dc6","fixed":"517ddc0259d7a7231486bdafde8035c478bc4088","status":"affected"},{"type":"git","introduced":"278d9a243635f26c05ad95dcf9c5a593b9e04dc6","fixed":"3a36d20e012903f45714df2731261fdefac900cb","status":"affected"},{"type":"git","version":"17495eb2f7f08113b50aba298c2c1a045824c4f7","status":"affected"},{"type":"git","version":"868de33a39e0e1e91ed3ce4a23a65f30144d2443","status":"affected"},{"type":"semver","introduced":"5.15.33","fixed":"5.15.112","status":"affected"},{"type":"semver","introduced":"5.16.19","fixed":"5.17","status":"affected"},{"type":"semver","introduced":"5.17.2","fixed":"5.18","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.18","status":"unaffected"},{"type":"semver","introduced":"5.15.112","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.28","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.2.15","lastAffected":"6.2.*","status":"unaffected"},{"type":"semver","introduced":"6.3.2","lastAffected":"6.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.4","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":"5.15.33","fixed":"5.15.112"},{"status":"affected","introduced":"5.16.19","fixed":"5.17"},{"status":"affected","introduced":"5.17.2","fixed":"6.1.28"},{"status":"affected","introduced":"6.2","fixed":"6.2.15"},{"status":"affected","introduced":"6.3","fixed":"6.3.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/43b2f7d690697182beed6f71aa57b7249d3cfc9c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9f565752b328fe53c9e42b7d4e4d89a1da63d738","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7e264f67b7d6580eff5c2696961039fd05c69258","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/517ddc0259d7a7231486bdafde8035c478bc4088","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3a36d20e012903f45714df2731261fdefac900cb","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-01-14T19:00:16.329Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53396","url":"https://www.cve.org/CVERecord?id=CVE-2023-53396","licence":"CVE Terms of Use","modified":"2026-05-23T15:28:45.902Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53396","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53396","licence":"Public domain","modified":"2026-06-17T06:45:12.623Z"}],"updatedAt":"2026-11-25T22:58:34.866Z","epss":{"score":0.00157,"percentile":0.05156,"date":"2026-12-01T12:00:22.000Z"}}