{"id":"CVE-2022-49425","aliases":["CVE-2022-49425"],"related":[],"kind":"vulnerability","state":"published","title":"f2fs: fix dereference of stale list iterator after loop body","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: fix dereference of stale list iterator after loop body\n\nThe list iterator variable will be a bogus pointer if no break was hit.\nDereferencing it (cur->page in this case) could load an out-of-bounds/undefined\nvalue making it unsafe to use that in the comparision to determine if the\nspecific element was found.\n\nSince 'cur->page' *can* be out-ouf-bounds it cannot be guaranteed that\nby chance (or intention of an attacker) it matches the value of 'page'\neven though the correct element was not found.\n\nThis is fixed by using a separate list iterator variable for the loop\nand only setting the original variable if a suitable element was found.\nThen determing if the element was found is simply checking if the\nvariable is set.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: fix dereference of stale list iterator after loop body\n\nThe list iterator variable will be a bogus pointer if no break was hit.\nDereferencing it (cur->page in this case) could load an out-of-bounds/undefined\nvalue making it unsafe to use that in the comparision to determine if the\nspecific element was found.\n\nSince 'cur->page' *can* be out-ouf-bounds it cannot be guaranteed that\nby chance (or intention of an attacker) it matches the value of 'page'\neven though the correct element was not found.\n\nThis is fixed by using a separate list iterator variable for the loop\nand only setting the original variable if a suitable element was found.\nThen determing if the element was found is simply checking if the\nvariable is set.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: f2fs: se corrige la desreferencia del iterador de lista obsoleto después del cuerpo del bucle La variable del iterador de lista será un puntero falso si no se alcanzó ninguna interrupción. Desreferenciarlo (cur-&gt;page en este caso) podría cargar un valor fuera de los límites/indefinido, lo que hace que no sea seguro usarlo en la comparación para determinar si se encontró el elemento específico. Dado que 'cur-&gt;page' *puede* estar fuera de los límites, no se puede garantizar que por casualidad (o intención de un atacante) coincida con el valor de 'page' aunque no se haya encontrado el elemento correcto. Esto se soluciona utilizando una variable de iterador de lista separada para el bucle y solo configurando la variable original si se encontró un elemento adecuado. Luego, determinar si se encontró el elemento es simplemente verificar si la variable está configurada.","source":"nvd"}],"published":"2025-02-26T02:12:46.702Z","modified":"2026-08-05T08:55:10.701Z","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-476"],"affected":[{"ranges":[{"type":"git","introduced":"8c242db9b8c01b252290e23827163787f07e01d1","fixed":"385edd3ce5b4b1e9d31f474a5e35a39779ec1110","status":"affected"},{"type":"git","introduced":"8c242db9b8c01b252290e23827163787f07e01d1","fixed":"5e47a7add3dda7f236548c5ec3017776dc2a729f","status":"affected"},{"type":"git","introduced":"8c242db9b8c01b252290e23827163787f07e01d1","fixed":"51d584704d18e60fa473823654f35611c777b291","status":"affected"},{"type":"git","introduced":"8c242db9b8c01b252290e23827163787f07e01d1","fixed":"45b2b7d7108ae1e25a5036cab04ab9273e792332","status":"affected"},{"type":"git","introduced":"8c242db9b8c01b252290e23827163787f07e01d1","fixed":"b26e1c777890e4b938136deb8ec07a29f33862e4","status":"affected"},{"type":"git","introduced":"8c242db9b8c01b252290e23827163787f07e01d1","fixed":"ed7efc472c00986dcd6903ab6ed165c7fa167674","status":"affected"},{"type":"git","introduced":"8c242db9b8c01b252290e23827163787f07e01d1","fixed":"2aaf51dd39afb6d01d13f1e6fe20b684733b37d5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.12","status":"unaffected"},{"type":"semver","introduced":"4.19.247","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.198","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.121","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.46","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.17.14","lastAffected":"5.17.*","status":"unaffected"},{"type":"semver","introduced":"5.18.3","lastAffected":"5.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.19","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":"4.12","fixed":"4.19.247"},{"status":"affected","introduced":"4.20","fixed":"5.4.198"},{"status":"affected","introduced":"5.5","fixed":"5.10.121"},{"status":"affected","introduced":"5.11","fixed":"5.15.46"},{"status":"affected","introduced":"5.16","fixed":"5.17.14"},{"status":"affected","introduced":"5.18","fixed":"5.18.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/385edd3ce5b4b1e9d31f474a5e35a39779ec1110","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5e47a7add3dda7f236548c5ec3017776dc2a729f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/51d584704d18e60fa473823654f35611c777b291","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/45b2b7d7108ae1e25a5036cab04ab9273e792332","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b26e1c777890e4b938136deb8ec07a29f33862e4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ed7efc472c00986dcd6903ab6ed165c7fa167674","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2aaf51dd39afb6d01d13f1e6fe20b684733b37d5","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49425","url":"https://www.cve.org/CVERecord?id=CVE-2022-49425","licence":"CVE Terms of Use","modified":"2026-08-05T08:55:10.701Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49425","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49425","licence":"Public domain","modified":"2026-08-04T10:17:47.933Z"}],"updatedAt":"2026-11-25T22:58:20.521Z","epss":{"score":0.00277,"percentile":0.21508,"date":"2026-12-01T12:00:22.000Z"}}