{"id":"CVE-2021-47651","aliases":["CVE-2021-47651"],"related":[],"kind":"vulnerability","state":"published","title":"soc: qcom: rpmpd: Check for null return of devm_kcalloc","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsoc: qcom: rpmpd: 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\nsoc: qcom: rpmpd: 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: soc: qcom: rpmpd: Verificar el retorno nulo de devm_kcalloc Debido al posible fallo 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-26T01:54:17.551Z","modified":"2026-06-17T04:18:14.880Z","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":"bbe3a66c3f5a65fb3d702351bac2a6033944d389","fixed":"755dbc3d73789ac9f0017c729abf5e4b153bf799","status":"affected"},{"type":"git","introduced":"bbe3a66c3f5a65fb3d702351bac2a6033944d389","fixed":"b5d6eba71997b6d661935d2b15094ac7f9f6132d","status":"affected"},{"type":"git","introduced":"bbe3a66c3f5a65fb3d702351bac2a6033944d389","fixed":"724376c30af5a57686b223dbcd6188e07d2a1de2","status":"affected"},{"type":"git","introduced":"bbe3a66c3f5a65fb3d702351bac2a6033944d389","fixed":"84b89fa877ad576e9ee8130f412cfd592f274508","status":"affected"},{"type":"git","introduced":"bbe3a66c3f5a65fb3d702351bac2a6033944d389","fixed":"31b5124d742969ea8bf7a1360596f548ca23e770","status":"affected"},{"type":"git","introduced":"bbe3a66c3f5a65fb3d702351bac2a6033944d389","fixed":"5a811126d38f9767a20cc271b34db7c8efc5a46c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.1","status":"unaffected"},{"type":"semver","introduced":"5.4.189","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.110","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.33","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.16.19","lastAffected":"5.16.*","status":"unaffected"},{"type":"semver","introduced":"5.17.2","lastAffected":"5.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.18","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":"5.1","fixed":"5.4.189"},{"status":"affected","introduced":"5.5","fixed":"5.10.110"},{"status":"affected","introduced":"5.11","fixed":"5.15.33"},{"status":"affected","introduced":"5.16","fixed":"5.16.19"},{"status":"affected","introduced":"5.17","fixed":"5.17.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/755dbc3d73789ac9f0017c729abf5e4b153bf799","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b5d6eba71997b6d661935d2b15094ac7f9f6132d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/724376c30af5a57686b223dbcd6188e07d2a1de2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/84b89fa877ad576e9ee8130f412cfd592f274508","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/31b5124d742969ea8bf7a1360596f548ca23e770","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5a811126d38f9767a20cc271b34db7c8efc5a46c","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T19:50:25.388Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47651","url":"https://www.cve.org/CVERecord?id=CVE-2021-47651","licence":"CVE Terms of Use","modified":"2026-05-11T13:58:37.390Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47651","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47651","licence":"Public domain","modified":"2026-06-17T04:18:14.880Z"}],"updatedAt":"2026-11-25T22:58:09.006Z","epss":{"score":0.00247,"percentile":0.17144,"date":"2026-12-01T12:00:22.000Z"}}