{"id":"CVE-2022-49388","summary":"ubi: ubi_create_volume: Fix use-after-free when volume creation failed","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nubi: ubi_create_volume: Fix use-after-free when volume creation failed\n\nThere is an use-after-free problem for 'eba_tbl' in ubi_create_volume()'s\nerror handling path:\n\n  ubi_eba_replace_table(vol, eba_tbl)\n    vol-\u003eeba_tbl = tbl\nout_mapping:\n  ubi_eba_destroy_table(eba_tbl)   // Free 'eba_tbl'\nout_unlock:\n  put_device(&vol-\u003edev)\n    vol_release\n      kfree(tbl-\u003eentries)\t  // UAF\n\nFix it by removing redundant 'eba_tbl' releasing.\nFetch a reproducer in [Link].","modified":"2026-03-20T12:24:28.567161Z","published":"2025-02-26T02:11:22.326Z","related":["SUSE-SU-2025:1293-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49388.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1174ab8ba36a48025b68b5ff1085000b1e510217"},{"type":"WEB","url":"https://git.kernel.org/stable/c/25ff1e3a1351c0d936dd1ac2f9e58231ea1510c9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5ff2514e4fb55dcf3d88294686040ca73ea0c1a2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6d8d3f68cbecfd31925796f0fb668eb21ab06734"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8302620aeb940f386817321d272b12411ae7d39f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8c03a1c21d72210f81cb369cc528e3fde4b45411"},{"type":"WEB","url":"https://git.kernel.org/stable/c/abb67043060f2bf4c03d7c3debb9ae980e2b6db3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e27ecf325e51abd06aaefba57a6322a46fa4178b"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49388.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49388"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec"},{"fixed":"25ff1e3a1351c0d936dd1ac2f9e58231ea1510c9"},{"fixed":"abb67043060f2bf4c03d7c3debb9ae980e2b6db3"},{"fixed":"8302620aeb940f386817321d272b12411ae7d39f"},{"fixed":"6d8d3f68cbecfd31925796f0fb668eb21ab06734"},{"fixed":"5ff2514e4fb55dcf3d88294686040ca73ea0c1a2"},{"fixed":"e27ecf325e51abd06aaefba57a6322a46fa4178b"},{"fixed":"1174ab8ba36a48025b68b5ff1085000b1e510217"},{"fixed":"8c03a1c21d72210f81cb369cc528e3fde4b45411"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49388.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}