{"id":"CVE-2023-53481","aliases":["CVE-2023-53481"],"related":[],"kind":"vulnerability","state":"published","title":"ubi: ubi_wl_put_peb: Fix infinite loop when wear-leveling work failed","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nubi: ubi_wl_put_peb: Fix infinite loop when wear-leveling work failed\n\nFollowing process will trigger an infinite loop in ubi_wl_put_peb():\n\n\tubifs_bgt\t\tubi_bgt\nubifs_leb_unmap\n  ubi_leb_unmap\n    ubi_eba_unmap_leb\n      ubi_wl_put_peb\twear_leveling_worker\n                          e1 = rb_entry(rb_first(&ubi->used)\n\t\t\t  e2 = get_peb_for_wl(ubi)\n\t\t\t  ubi_io_read_vid_hdr  // return err (flash fault)\n\t\t\t  out_error:\n\t\t\t    ubi->move_from = ubi->move_to = NULL\n\t\t\t    wl_entry_destroy(ubi, e1)\n\t\t\t      ubi->lookuptbl[e->pnum] = NULL\n      retry:\n        e = ubi->lookuptbl[pnum];\t// return NULL\n\tif (e == ubi->move_from) {\t// NULL == NULL gets true\n\t  goto retry;\t\t\t// infinite loop !!!\n\n$ top\n  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     COMMAND\n  7676 root     20   0       0      0      0 R 100.0  0.0  ubifs_bgt0_0\n\nFix it by:\n 1) Letting ubi_wl_put_peb() returns directly if wearl leveling entry has\n    been removed from 'ubi->lookuptbl'.\n 2) Using 'ubi->wl_lock' protecting wl entry deletion to preventing an\n    use-after-free problem for wl entry in ubi_wl_put_peb().\n\nFetch a reproducer in [Link].","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nubi: ubi_wl_put_peb: Fix infinite loop when wear-leveling work failed\n\nFollowing process will trigger an infinite loop in ubi_wl_put_peb():\n\n\tubifs_bgt\t\tubi_bgt\nubifs_leb_unmap\n  ubi_leb_unmap\n    ubi_eba_unmap_leb\n      ubi_wl_put_peb\twear_leveling_worker\n                          e1 = rb_entry(rb_first(&ubi->used)\n\t\t\t  e2 = get_peb_for_wl(ubi)\n\t\t\t  ubi_io_read_vid_hdr  // return err (flash fault)\n\t\t\t  out_error:\n\t\t\t    ubi->move_from = ubi->move_to = NULL\n\t\t\t    wl_entry_destroy(ubi, e1)\n\t\t\t      ubi->lookuptbl[e->pnum] = NULL\n      retry:\n        e = ubi->lookuptbl[pnum];\t// return NULL\n\tif (e == ubi->move_from) {\t// NULL == NULL gets true\n\t  goto retry;\t\t\t// infinite loop !!!\n\n$ top\n  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     COMMAND\n  7676 root     20   0       0      0      0 R 100.0  0.0  ubifs_bgt0_0\n\nFix it by:\n 1) Letting ubi_wl_put_peb() returns directly if wearl leveling entry has\n    been removed from 'ubi->lookuptbl'.\n 2) Using 'ubi->wl_lock' protecting wl entry deletion to preventing an\n    use-after-free problem for wl entry in ubi_wl_put_peb().\n\nFetch a reproducer in [Link].","source":"cvelist"}],"published":"2025-10-01T11:42:49.825Z","modified":"2026-10-15T22:17:40.303Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"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-835"],"affected":[{"ranges":[{"type":"git","introduced":"43f9b25a9cdd7b177f77f026b1461abd1abbd174","fixed":"b40d2fbf47af58377e898b5062077a47bb28a132","status":"affected"},{"type":"git","introduced":"43f9b25a9cdd7b177f77f026b1461abd1abbd174","fixed":"f006f596fe851c3b6aae60b79f89f89f0e515d2f","status":"affected"},{"type":"git","introduced":"43f9b25a9cdd7b177f77f026b1461abd1abbd174","fixed":"b5be23f6ae610bdb262160a1f294afee6d0e6a69","status":"affected"},{"type":"git","introduced":"43f9b25a9cdd7b177f77f026b1461abd1abbd174","fixed":"8a18856e074479bd050b01e688c58defadce7ab0","status":"affected"},{"type":"git","introduced":"43f9b25a9cdd7b177f77f026b1461abd1abbd174","fixed":"3afaaf6f5867dc4ad383808d4053f428ec7b867d","status":"affected"},{"type":"git","introduced":"43f9b25a9cdd7b177f77f026b1461abd1abbd174","fixed":"cc4bc532acda66189bddc03b3fe1ad689d9a48a2","status":"affected"},{"type":"git","introduced":"43f9b25a9cdd7b177f77f026b1461abd1abbd174","fixed":"5af1c643184a5d09ff5b3f334077a4d0a163c677","status":"affected"},{"type":"git","introduced":"43f9b25a9cdd7b177f77f026b1461abd1abbd174","fixed":"4d57a7333e26040f2b583983e1970d9d460e56b0","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.25","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.25","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":"2.6.25","fixed":"4.14.308"},{"status":"affected","introduced":"4.15","fixed":"4.19.276"},{"status":"affected","introduced":"4.20","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/b40d2fbf47af58377e898b5062077a47bb28a132","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f006f596fe851c3b6aae60b79f89f89f0e515d2f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b5be23f6ae610bdb262160a1f294afee6d0e6a69","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8a18856e074479bd050b01e688c58defadce7ab0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3afaaf6f5867dc4ad383808d4053f428ec7b867d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cc4bc532acda66189bddc03b3fe1ad689d9a48a2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5af1c643184a5d09ff5b3f334077a4d0a163c677","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4d57a7333e26040f2b583983e1970d9d460e56b0","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-15T21:34:44.820Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53481","url":"https://www.cve.org/CVERecord?id=CVE-2023-53481","licence":"CVE Terms of Use","modified":"2026-10-15T21:41:28.594Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53481","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53481","licence":"Public domain","modified":"2026-10-15T22:17:40.303Z"}],"updatedAt":"2026-11-25T22:58:34.903Z","epss":{"score":0.00172,"percentile":0.0687,"date":"2026-12-01T12:00:22.000Z"}}