{"id":"CVE-2022-49608","aliases":["CVE-2022-49608"],"related":[],"kind":"vulnerability","state":"published","title":"pinctrl: ralink: Check for null return of devm_kcalloc","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\npinctrl: ralink: Check for null return of devm_kcalloc\n\nBecause of the possible failure of the allocation, data->domains might\nbe NULL pointer and will cause the dereference of the NULL pointer\nlater.\nTherefore, it might be better to check it and directly return -ENOMEM\nwithout releasing data manually if fails, because the comment of the\ndevm_kmalloc() says \"Memory allocated with this function is\nautomatically freed on driver detach.\".","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\npinctrl: ralink: Check for null return of devm_kcalloc\n\nBecause of the possible failure of the allocation, data->domains might\nbe NULL pointer and will cause the dereference of the NULL pointer\nlater.\nTherefore, it might be better to check it and directly return -ENOMEM\nwithout releasing data manually if fails, because the comment of the\ndevm_kmalloc() says \"Memory allocated with this function is\nautomatically freed on driver detach.\".","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: pinctrl: ralink: Verificar el retorno nulo de devm_kcalloc Debido a la posible falla de la asignación, data-&gt;domains podría ser un puntero NULL y provocará la desreferencia del puntero NULL más adelante. Por lo tanto, podría ser mejor verificarlo y devolver directamente -ENOMEM sin liberar los datos manualmente si falla, porque el comentario de devm_kmalloc() dice \"La memoria asignada con esta función se libera automáticamente al desconectar el controlador\".","source":"nvd"}],"published":"2025-02-26T02:23:32.309Z","modified":"2026-06-17T05:18:36.980Z","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-476"],"affected":[{"ranges":[{"type":"git","introduced":"a86854d0c599b3202307abceb68feee4d7061578","fixed":"13596e6c9e541e90e5fc2c52b23f08b951370da9","status":"affected"},{"type":"git","introduced":"a86854d0c599b3202307abceb68feee4d7061578","fixed":"6194c021496addc11763d1ffa89ce5751889fe3c","status":"affected"},{"type":"git","introduced":"a86854d0c599b3202307abceb68feee4d7061578","fixed":"5694b162f275fb9a9f89422701b2b963be11e496","status":"affected"},{"type":"git","introduced":"a86854d0c599b3202307abceb68feee4d7061578","fixed":"44016a85419ca0d4f1e4d0127b330f8e4e2a57d0","status":"affected"},{"type":"git","introduced":"a86854d0c599b3202307abceb68feee4d7061578","fixed":"5595d30c4dc27d939635c3188c68203b6ece1711","status":"affected"},{"type":"git","introduced":"a86854d0c599b3202307abceb68feee4d7061578","fixed":"c3b821e8e406d5650e587b7ac624ac24e9b780a8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.18","status":"unaffected"},{"type":"semver","introduced":"4.19.254","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.208","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.134","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.58","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.18.15","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.18","fixed":"4.19.254"},{"status":"affected","introduced":"4.20","fixed":"5.4.208"},{"status":"affected","introduced":"5.5","fixed":"5.10.134"},{"status":"affected","introduced":"5.11","fixed":"5.15.58"},{"status":"affected","introduced":"5.16","fixed":"5.18.15"},{"status":"affected","version":"5.19"},{"status":"affected","version":"5.19"},{"status":"affected","version":"5.19"},{"status":"affected","version":"5.19"},{"status":"affected","version":"5.19"},{"status":"affected","version":"5.19"},{"status":"affected","version":"5.19"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/13596e6c9e541e90e5fc2c52b23f08b951370da9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6194c021496addc11763d1ffa89ce5751889fe3c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5694b162f275fb9a9f89422701b2b963be11e496","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/44016a85419ca0d4f1e4d0127b330f8e4e2a57d0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5595d30c4dc27d939635c3188c68203b6ece1711","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c3b821e8e406d5650e587b7ac624ac24e9b780a8","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T19:34:58.884Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49608","url":"https://www.cve.org/CVERecord?id=CVE-2022-49608","licence":"CVE Terms of Use","modified":"2026-05-11T19:03:14.500Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49608","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49608","licence":"Public domain","modified":"2026-06-17T05:18:36.980Z"}],"updatedAt":"2026-11-25T22:58:20.757Z","epss":{"score":0.0027,"percentile":0.20587,"date":"2026-12-01T12:00:22.000Z"}}