{"id":"CVE-2025-68375","aliases":["CVE-2025-68375"],"related":[],"kind":"vulnerability","state":"published","title":"perf/x86: Fix NULL event access and potential PEBS record loss","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf/x86: Fix NULL event access and potential PEBS record loss\n\nWhen intel_pmu_drain_pebs_icl() is called to drain PEBS records, the\nperf_event_overflow() could be called to process the last PEBS record.\n\nWhile perf_event_overflow() could trigger the interrupt throttle and\nstop all events of the group, like what the below call-chain shows.\n\nperf_event_overflow()\n  -> __perf_event_overflow()\n    ->__perf_event_account_interrupt()\n      -> perf_event_throttle_group()\n        -> perf_event_throttle()\n          -> event->pmu->stop()\n            -> x86_pmu_stop()\n\nThe side effect of stopping the events is that all corresponding event\npointers in cpuc->events[] array are cleared to NULL.\n\nAssume there are two PEBS events (event a and event b) in a group. When\nintel_pmu_drain_pebs_icl() calls perf_event_overflow() to process the\nlast PEBS record of PEBS event a, interrupt throttle is triggered and\nall pointers of event a and event b are cleared to NULL. Then\nintel_pmu_drain_pebs_icl() tries to process the last PEBS record of\nevent b and encounters NULL pointer access.\n\nTo avoid this issue, move cpuc->events[] clearing from x86_pmu_stop()\nto x86_pmu_del(). It's safe since cpuc->active_mask or\ncpuc->pebs_enabled is always checked before access the event pointer\nfrom cpuc->events[].","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf/x86: Fix NULL event access and potential PEBS record loss\n\nWhen intel_pmu_drain_pebs_icl() is called to drain PEBS records, the\nperf_event_overflow() could be called to process the last PEBS record.\n\nWhile perf_event_overflow() could trigger the interrupt throttle and\nstop all events of the group, like what the below call-chain shows.\n\nperf_event_overflow()\n  -> __perf_event_overflow()\n    ->__perf_event_account_interrupt()\n      -> perf_event_throttle_group()\n        -> perf_event_throttle()\n          -> event->pmu->stop()\n            -> x86_pmu_stop()\n\nThe side effect of stopping the events is that all corresponding event\npointers in cpuc->events[] array are cleared to NULL.\n\nAssume there are two PEBS events (event a and event b) in a group. When\nintel_pmu_drain_pebs_icl() calls perf_event_overflow() to process the\nlast PEBS record of PEBS event a, interrupt throttle is triggered and\nall pointers of event a and event b are cleared to NULL. Then\nintel_pmu_drain_pebs_icl() tries to process the last PEBS record of\nevent b and encounters NULL pointer access.\n\nTo avoid this issue, move cpuc->events[] clearing from x86_pmu_stop()\nto x86_pmu_del(). It's safe since cpuc->active_mask or\ncpuc->pebs_enabled is always checked before access the event pointer\nfrom cpuc->events[].","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad:\n\nperf/x86: Corrección del acceso a eventos NULL y posible pérdida de registros PEBS\n\nCuando se llama a intel_pmu_drain_pebs_icl() para drenar registros PEBS, se podría llamar a perf_event_overflow() para procesar el último registro PEBS.\n\nMientras que perf_event_overflow() podría activar la limitación de interrupciones (interrupt throttle) y detener todos los eventos del grupo, como muestra la siguiente cadena de llamadas.\n\nperf_event_overflow()\n   ->  __perf_event_overflow()\n     -> __perf_event_account_interrupt()\n       ->  perf_event_throttle_group()\n         ->  perf_event_throttle()\n           ->  event -> pmu -> stop()\n             ->  x86_pmu_stop()\n\nEl efecto secundario de detener los eventos es que todos los punteros de evento correspondientes en el array cpuc -> events[] se borran a NULL.\n\nSupongamos que hay dos eventos PEBS (evento a y evento b) en un grupo. Cuando intel_pmu_drain_pebs_icl() llama a perf_event_overflow() para procesar el último registro PEBS del evento PEBS a, se activa la limitación de interrupciones y todos los punteros del evento a y del evento b se borran a NULL. Luego, intel_pmu_drain_pebs_icl() intenta procesar el último registro PEBS del evento b y encuentra un acceso a puntero NULL.\n\nPara evitar este problema, mueva la limpieza de cpuc -> events[] de x86_pmu_stop() a x86_pmu_del(). Es seguro ya que cpuc -> active_mask o cpuc -> pebs_enabled siempre se verifica antes de acceder al puntero del evento desde cpuc -> events[].","source":"nvd"}],"published":"2025-12-24T10:33:04.819Z","modified":"2026-10-13T11:10:00.203Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"9734e25fbf5ae68eb04234b2cd14a4b36ab89141","fixed":"cf69b99805c263117305ac6dffbc85aaf9259d32","status":"affected"},{"type":"git","introduced":"9734e25fbf5ae68eb04234b2cd14a4b36ab89141","fixed":"6b089028bff1f2ff9e0c62b8f1faca1a620e5d6e","status":"affected"},{"type":"git","introduced":"9734e25fbf5ae68eb04234b2cd14a4b36ab89141","fixed":"7e772a93eb61cb6265bdd1c5bde17d0f2718b452","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.16","status":"unaffected"},{"type":"semver","introduced":"6.17.13","lastAffected":"6.17.*","status":"unaffected"},{"type":"semver","introduced":"6.18.2","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/cf69b99805c263117305ac6dffbc85aaf9259d32","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6b089028bff1f2ff9e0c62b8f1faca1a620e5d6e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7e772a93eb61cb6265bdd1c5bde17d0f2718b452","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68375","url":"https://www.cve.org/CVERecord?id=CVE-2025-68375","licence":"CVE Terms of Use","modified":"2026-05-11T21:51:59.533Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68375","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68375","licence":"Public domain","modified":"2026-10-13T11:10:00.203Z"}],"updatedAt":"2026-11-25T22:59:09.874Z","epss":{"score":0.00206,"percentile":0.11326,"date":"2026-12-01T12:00:22.000Z"}}