{"id":"CVE-2021-47631","aliases":["CVE-2021-47631"],"related":[],"kind":"vulnerability","state":"published","title":"ARM: davinci: da850-evm: Avoid NULL pointer dereference","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nARM: davinci: da850-evm: Avoid NULL pointer dereference\n\nWith newer versions of GCC, there is a panic in da850_evm_config_emac()\nwhen booting multi_v5_defconfig in QEMU under the palmetto-bmc machine:\n\nUnable to handle kernel NULL pointer dereference at virtual address 00000020\npgd = (ptrval)\n[00000020] *pgd=00000000\nInternal error: Oops: 5 [#1] PREEMPT ARM\nModules linked in:\nCPU: 0 PID: 1 Comm: swapper Not tainted 5.15.0 #1\nHardware name: Generic DT based system\nPC is at da850_evm_config_emac+0x1c/0x120\nLR is at do_one_initcall+0x50/0x1e0\n\nThe emac_pdata pointer in soc_info is NULL because davinci_soc_info only\ngets populated on davinci machines but da850_evm_config_emac() is called\non all machines via device_initcall().\n\nMove the rmii_en assignment below the machine check so that it is only\ndereferenced when running on a supported SoC.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nARM: davinci: da850-evm: Avoid NULL pointer dereference\n\nWith newer versions of GCC, there is a panic in da850_evm_config_emac()\nwhen booting multi_v5_defconfig in QEMU under the palmetto-bmc machine:\n\nUnable to handle kernel NULL pointer dereference at virtual address 00000020\npgd = (ptrval)\n[00000020] *pgd=00000000\nInternal error: Oops: 5 [#1] PREEMPT ARM\nModules linked in:\nCPU: 0 PID: 1 Comm: swapper Not tainted 5.15.0 #1\nHardware name: Generic DT based system\nPC is at da850_evm_config_emac+0x1c/0x120\nLR is at do_one_initcall+0x50/0x1e0\n\nThe emac_pdata pointer in soc_info is NULL because davinci_soc_info only\ngets populated on davinci machines but da850_evm_config_emac() is called\non all machines via device_initcall().\n\nMove the rmii_en assignment below the machine check so that it is only\ndereferenced when running on a supported SoC.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ARM: davinci: da850-evm: Evitar la desreferencia de puntero NULL Con versiones más nuevas de GCC, hay un pánico en da850_evm_config_emac() al iniciar multi_v5_defconfig en QEMU bajo la máquina palmetto-bmc: No se puede manejar la desreferencia de puntero NULL del kernel en la dirección virtual 00000020 pgd = (ptrval) [00000020] *pgd=00000000 Error interno: Oops: 5 [#1] PREEMPT Módulos ARM vinculados: CPU: 0 PID: 1 Comm: swapper No contaminado 5.15.0 #1 Nombre del hardware: Sistema genérico basado en DT La PC está en da850_evm_config_emac+0x1c/0x120 LR está en El puntero emac_pdata en soc_info es NULL porque davinci_soc_info solo se completa en máquinas davinci, pero se llama a da850_evm_config_emac() en todas las máquinas a través de device_initcall(). Mueva la asignación rmii_en debajo de la verificación de la máquina para que solo se desreferencia cuando se ejecuta en un SoC compatible.","source":"nvd"}],"published":"2025-02-26T01:54:07.513Z","modified":"2026-06-17T04:18:11.560Z","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":"bae105879f2f2404155da6f50b3636193d228a62","fixed":"c06f476e5b74bcabb8c4a2fba55864a37e62843b","status":"affected"},{"type":"git","introduced":"bae105879f2f2404155da6f50b3636193d228a62","fixed":"a12b356d45cbb6e8a1b718d1436b3d6239a862f3","status":"affected"},{"type":"git","introduced":"bae105879f2f2404155da6f50b3636193d228a62","fixed":"c64e2ed5cc376e137e572babfd2edc38b2cfb61b","status":"affected"},{"type":"git","introduced":"bae105879f2f2404155da6f50b3636193d228a62","fixed":"89931d4762572aaee6edbe5673d41f8082de110f","status":"affected"},{"type":"git","introduced":"bae105879f2f2404155da6f50b3636193d228a62","fixed":"0a312ec66a03133d28570f07bc52749ccfef54da","status":"affected"},{"type":"git","introduced":"bae105879f2f2404155da6f50b3636193d228a62","fixed":"0940795c6834fbe7705acc5c3d4b2f7a5f67527a","status":"affected"},{"type":"git","introduced":"bae105879f2f2404155da6f50b3636193d228a62","fixed":"c5628533a3ece64235d04fe11ec44d2be99e423d","status":"affected"},{"type":"git","introduced":"bae105879f2f2404155da6f50b3636193d228a62","fixed":"83a1cde5c74bfb44b49cb2a940d044bb2380f4ea","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.33","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.33","status":"unaffected"},{"type":"semver","introduced":"4.9.311","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.276","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.239","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.190","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.112","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.35","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.17.4","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":"2.6.33","fixed":"4.9.311"},{"status":"affected","introduced":"4.10","fixed":"4.14.276"},{"status":"affected","introduced":"4.15","fixed":"4.19.239"},{"status":"affected","introduced":"4.20","fixed":"5.4.190"},{"status":"affected","introduced":"5.5","fixed":"5.10.112"},{"status":"affected","introduced":"5.11","fixed":"5.15.35"},{"status":"affected","introduced":"5.16","fixed":"5.17.4"},{"status":"affected","version":"5.18"},{"status":"affected","version":"5.18"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c06f476e5b74bcabb8c4a2fba55864a37e62843b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a12b356d45cbb6e8a1b718d1436b3d6239a862f3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c64e2ed5cc376e137e572babfd2edc38b2cfb61b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/89931d4762572aaee6edbe5673d41f8082de110f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0a312ec66a03133d28570f07bc52749ccfef54da","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0940795c6834fbe7705acc5c3d4b2f7a5f67527a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c5628533a3ece64235d04fe11ec44d2be99e423d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/83a1cde5c74bfb44b49cb2a940d044bb2380f4ea","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T19:51:01.274Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47631","url":"https://www.cve.org/CVERecord?id=CVE-2021-47631","licence":"CVE Terms of Use","modified":"2026-05-11T13:58:07.851Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47631","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47631","licence":"Public domain","modified":"2026-06-17T04:18:11.560Z"}],"updatedAt":"2026-11-25T22:58:08.993Z","epss":{"score":0.00244,"percentile":0.16667,"date":"2026-12-01T12:00:22.000Z"}}