{"id":"CVE-2025-39920","aliases":["CVE-2025-39920"],"related":[],"kind":"vulnerability","state":"published","title":"pcmcia: Add error handling for add_interval() in do_validate_mem()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\npcmcia: Add error handling for add_interval() in do_validate_mem()\n\nIn the do_validate_mem(), the call to add_interval() does not\nhandle errors. If kmalloc() fails in add_interval(), it could\nresult in a null pointer being inserted into the linked list,\nleading to illegal memory access when sub_interval() is called\nnext.\n\nThis patch adds an error handling for the add_interval(). If\nadd_interval() returns an error, the function will return early\nwith the error code.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\npcmcia: Add error handling for add_interval() in do_validate_mem()\n\nIn the do_validate_mem(), the call to add_interval() does not\nhandle errors. If kmalloc() fails in add_interval(), it could\nresult in a null pointer being inserted into the linked list,\nleading to illegal memory access when sub_interval() is called\nnext.\n\nThis patch adds an error handling for the add_interval(). If\nadd_interval() returns an error, the function will return early\nwith the error code.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\npcmcia: Añadir manejo de errores para add_interval() en do_validate_mem()\n\nEn do_validate_mem(), la llamada a add_interval() no maneja errores. Si kmalloc() falla en add_interval(), podría resultar en la inserción de un puntero nulo en la lista enlazada, lo que llevaría a un acceso ilegal a memoria cuando se llame a sub_interval() a continuación.\n\nEste parche añade un manejo de errores para add_interval(). Si add_interval() devuelve un error, la función retornará anticipadamente con el código de error.","source":"nvd"}],"published":"2025-10-01T07:55:15.731Z","modified":"2026-10-19T21:10:00.160Z","severity":{"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"},"severities":[{"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":"7b4884ca8853a638df0eb5d251d80d67777b8b1a","fixed":"5b60ed401b47897352c520bc724c85aa908dedcc","status":"affected"},{"type":"git","introduced":"7b4884ca8853a638df0eb5d251d80d67777b8b1a","fixed":"ae184024ef31423e5beb44cf4f52999bbcf2fe5b","status":"affected"},{"type":"git","introduced":"7b4884ca8853a638df0eb5d251d80d67777b8b1a","fixed":"85be7ef8c8e792a414940a38d94565dd48d2f236","status":"affected"},{"type":"git","introduced":"7b4884ca8853a638df0eb5d251d80d67777b8b1a","fixed":"06b26e3099207c94b3d1be8565aedc6edc4f0a60","status":"affected"},{"type":"git","introduced":"7b4884ca8853a638df0eb5d251d80d67777b8b1a","fixed":"8699358b6ac99b8ccc97ed9e6e3669ef8958ef7b","status":"affected"},{"type":"git","introduced":"7b4884ca8853a638df0eb5d251d80d67777b8b1a","fixed":"289b58f8ff3198d091074a751d6b8f6827726f3e","status":"affected"},{"type":"git","introduced":"7b4884ca8853a638df0eb5d251d80d67777b8b1a","fixed":"369bf6e241506583f4ee7593c53b92e5a9f271b4","status":"affected"},{"type":"git","introduced":"7b4884ca8853a638df0eb5d251d80d67777b8b1a","fixed":"4a81f78caa53e0633cf311ca1526377d9bff7479","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.34","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.34","status":"unaffected"},{"type":"semver","introduced":"5.4.299","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.243","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.192","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.151","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.105","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.46","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.6","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","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.34","fixed":"5.4.299"},{"status":"affected","introduced":"5.5","fixed":"5.10.243"},{"status":"affected","introduced":"5.11","fixed":"5.15.192"},{"status":"affected","introduced":"5.16","fixed":"6.1.151"},{"status":"affected","introduced":"6.2","fixed":"6.6.105"},{"status":"affected","introduced":"6.7","fixed":"6.12.46"},{"status":"affected","introduced":"6.13","fixed":"6.16.6"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/5b60ed401b47897352c520bc724c85aa908dedcc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ae184024ef31423e5beb44cf4f52999bbcf2fe5b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/85be7ef8c8e792a414940a38d94565dd48d2f236","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/06b26e3099207c94b3d1be8565aedc6edc4f0a60","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8699358b6ac99b8ccc97ed9e6e3669ef8958ef7b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/289b58f8ff3198d091074a751d6b8f6827726f3e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/369bf6e241506583f4ee7593c53b92e5a9f271b4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4a81f78caa53e0633cf311ca1526377d9bff7479","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39920","url":"https://www.cve.org/CVERecord?id=CVE-2025-39920","licence":"CVE Terms of Use","modified":"2026-05-11T21:38:58.334Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39920","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39920","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:05.394Z","epss":{"score":0.00175,"percentile":0.07354,"date":"2026-12-01T12:00:22.000Z"}}