5.5medium
powerpc, perf: Check that current->mm is alive before getting user callchain
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.12% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: powerpc, perf: Check that current->mm is alive before getting user callchain It may happen that mm is already released, which leads to kernel panic. This adds the NULL check for current->mm, similarly to commit 20afc60f892d ("x86, perf: Check that current->mm is alive before getting user callchain"). I was getting this panic when running a profiling BPF program (profile.py from bcc-tools): [26215.051935] Kernel attempted to read user page (588) - exploit attempt? (uid: 0) [26215.051950] BUG: Kernel NULL pointer dereference on read at 0x00000588 [26215.051952] Faulting instruction address: 0xc00000000020fac0 [26215.051957] Oops: Kernel access of bad area, sig: 11 [#1] [...] [26215.052049] Call Trace: [26215.052050] [c000000061da6d30] [c00000000020fc10] perf_callchain_user_64+0x2d0/0x490 (unreliable) [26215.052054] [c000000061da6dc0] [c00000000020f92c] perf_callchain_user+0x1c/0x30 [26215.052057] [c000000061da6de0] [c0000000005ab2a0] get_perf_callchain+0x100/0x360 [26215.052063] [c000000061da6e70] [c000000000573bc8] bpf_get_stackid+0x88/0xf0 [26215.052067] [c000000061da6ea0] [c008000000042258] bpf_prog_16d4ab9ab662f669_do_perf_event+0xf8/0x274 [...] In addition, move storing the top-level stack entry to generic perf_callchain_user to make sure the top-evel entry is always captured, even if current->mm is NULL. [Maddy: fixed message to avoid checkpatch format style error]
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 20002ded4d937ca87aca6253b874920a96a763c4 before 98074e16742ae87fb82e234b419783c5ffc9baea, from 20002ded4d937ca87aca6253b874920a96a763c4 before 7e5f60b8cfc02a2b23a40a5f5fd2fa81d010e737, from 20002ded4d937ca87aca6253b874920a96a763c4 before e9bbfb4bfa86c6b5515b868d6982ac60505d7e39, 2.6.32 Not affected: before 2.6.32, from 6.18.19 up to 6.18.*, from 6.19.9 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 2.6.32 before 6.18.19, from 6.19 before 6.19.9, 7.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: powerpc, perf: Check that current->mm is alive before getting user callchain It may happen that mm is already released, which leads to kernel panic. This adds the NULL check for current->mm, similarly to commit 20afc60f892d ("x86, perf: Check that current->mm is alive before getting user callchain"). I was getting this panic when running a profiling BPF program (profile.py from bcc-tools): [26215.051935] Kernel attempted to read user page (588) - exploit attempt? (uid: 0) [26215.051950] BUG: Kernel NULL pointer dereference on read at 0x00000588 [26215.051952] Faulting instruction address: 0xc00000000020fac0 [26215.051957] Oops: Kernel access of bad area, sig: 11 [#1] [...] [26215.052049] Call Trace: [26215.052050] [c000000061da6d30] [c00000000020fc10] perf_callchain_user_64+0x2d0/0x490 (unreliable) [26215.052054] [c000000061da6dc0] [c00000000020f92c] perf_callchain_user+0x1c/0x30 [26215.052057] [c000000061da6de0] [c0000000005ab2a0] get_perf_callchain+0x100/0x360 [26215.052063] [c000000061da6e70] [c000000000573bc8] bpf_get_stackid+0x88/0xf0 [26215.052067] [c000000061da6ea0] [c008000000042258] bpf_prog_16d4ab9ab662f669_do_perf_event+0xf8/0x274 [...] In addition, move storing the top-level stack entry to generic perf_callchain_user to make sure the top-evel entry is always captured, even if current->mm is NULL. [Maddy: fixed message to avoid checkpatch format style error]
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: powerpc, perf: Verificar que current -> mm esté activo antes de obtener la cadena de llamadas de usuario Puede ocurrir que mm ya esté liberado, lo que lleva a un pánico del kernel. Esto añade la verificación de NULL para current -> mm, de forma similar a commit 20afc60f892d (’x86, perf: Verificar que current -> mm esté activo antes de obtener la cadena de llamadas de usuario’). Estaba experimentando este pánico al ejecutar un programa BPF de perfilado (profile.py de bcc-tools): [26215.051935] El kernel intentó leer la página de usuario (588) - ¿intento de exploit? (uid: 0) [26215.051950] ERROR: Desreferencia de puntero NULL del kernel en lectura en 0x 00000588 [26215.051952] Dirección de instrucción con fallo: 0x c00000000020fac0 [26215.051957] Oops: Acceso del kernel a área incorrecta, sig: 11 [#1] [...] [26215.052049] Traza de llamadas: [26215.052050] [c000000061da6d30] [c00000000020fc10] perf_callchain_user_64+0x2d0/0x490 (no fiable) [26215.052054] [c000000061da6dc0] [c00000000020f92c] perf_callchain_user+0x1c/0x30 [26215.052057] [c000000061da6de0] [c0000000005ab2a0] get_perf_callchain+0x100/0x360 [26215.052063] [c000000061da6e70] [c000000000573bc8] bpf_get_stackid+0x88/0xf0 [26215.052067] [c000000061da6ea0] [c008000000042258] bpf_prog_16d4ab9ab662f669_do_perf_event+0xf8/0x274 [...] Además, mover el almacenamiento de la entrada de pila de nivel superior a perf_callchain_user genérico para asegurar que la entrada de nivel superior siempre sea capturada, incluso si current -> mm es NULL. [Maddy: mensaje corregido para evitar el error de estilo de formato de checkpatch]
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43416 changed 2026-11-06 | CVE Terms of Use |
| NVD | CVE-2026-43416 changed 2026-11-11 | Public domain |