{"id":"CVE-2026-74601","aliases":["CVE-2026-74601"],"related":[],"kind":"vulnerability","state":"published","title":"ring-buffer: Use current_context for safe per-CPU buffer swap","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nring-buffer: Use current_context for safe per-CPU buffer swap\n\nThe ring_buffer_swap_cpu() function currently checks the per-CPU\ncommitting counter to determine if a buffer is actively being written to\nbefore performing the swap. However, there exists a race window where\nthis check can be bypassed:\n\n    ring_buffer_lock_reserve\n        cpu_buffer = buffer->buffers[cpu];       // cpu_buffer_a\n        rb_reserve_next_event\n            rb_start_commit // inc committing\n            if (unlikely(READ_ONCE(cpu_buffer->buffer) != buffer)) {...}\n            __rb_reserve_next\n                rb_move_tail\n                    rb_end_commit(cpu_buffer);   // dec committing => 0\n                    /* interrupt hits here, successfully swaps! */\n                    local_inc(&cpu_buffer->committing);\n\n    ring_buffer_unlock_commit\n        cpu_buffer = buffer->buffers[cpu];      // cpu_buffer_b\n        rb_commit\n            rb_end_commit\n            RB_WARN_ON(cpu_buffer, !local_read(&cpu_buffer->committing))\n                                                // triggers warning\n\nThe committing counter can temporarily drop to 0 during a single write\noperation (within rb_move_tail), creating a window where swap can\nsucceed even though the write is still in progress. This leads to\ninconsistent buffer state and triggers the RB_WARN_ON in rb_commit().\n\nReplace the committing counter check with current_context checks, which\nare set at the entry of ring_buffer_lock_reserve() and remain valid\nthroughout the entire write operation, providing a reliable indicator of\nbuffer busy state during swap.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nring-buffer: Use current_context for safe per-CPU buffer swap\n\nThe ring_buffer_swap_cpu() function currently checks the per-CPU\ncommitting counter to determine if a buffer is actively being written to\nbefore performing the swap. However, there exists a race window where\nthis check can be bypassed:\n\n    ring_buffer_lock_reserve\n        cpu_buffer = buffer->buffers[cpu];       // cpu_buffer_a\n        rb_reserve_next_event\n            rb_start_commit // inc committing\n            if (unlikely(READ_ONCE(cpu_buffer->buffer) != buffer)) {...}\n            __rb_reserve_next\n                rb_move_tail\n                    rb_end_commit(cpu_buffer);   // dec committing => 0\n                    /* interrupt hits here, successfully swaps! */\n                    local_inc(&cpu_buffer->committing);\n\n    ring_buffer_unlock_commit\n        cpu_buffer = buffer->buffers[cpu];      // cpu_buffer_b\n        rb_commit\n            rb_end_commit\n            RB_WARN_ON(cpu_buffer, !local_read(&cpu_buffer->committing))\n                                                // triggers warning\n\nThe committing counter can temporarily drop to 0 during a single write\noperation (within rb_move_tail), creating a window where swap can\nsucceed even though the write is still in progress. This leads to\ninconsistent buffer state and triggers the RB_WARN_ON in rb_commit().\n\nReplace the committing counter check with current_context checks, which\nare set at the entry of ring_buffer_lock_reserve() and remain valid\nthroughout the entire write operation, providing a reliable indicator of\nbuffer busy state during swap.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nring-buffer: Usar current_context para un intercambio seguro de búfer por CPU\n\nLa función ring_buffer_swap_cpu() actualmente verifica el contador de 'committing' por CPU para determinar si se está escribiendo activamente en un búfer antes de realizar el intercambio. Sin embargo, existe una ventana de carrera donde esta verificación puede ser eludida:\n\n    ring_buffer_lock_reserve\n        cpu_buffer = buffer -> buffers[cpu];       // cpu_buffer_a\n        rb_reserve_next_event\n            rb_start_commit // inc committing\n            if (unlikely(READ_ONCE(cpu_buffer -> buffer) != buffer)) {...}\n            __rb_reserve_next\n                rb_move_tail\n                    rb_end_commit(cpu_buffer);   // dec committing => 0\n                    /* ¡la interrupción ocurre aquí, el intercambio se realiza con éxito! */\n                    local_inc(&cpu_buffer -> committing);\n\n    ring_buffer_unlock_commit\n        cpu_buffer = buffer -> buffers[cpu];      // cpu_buffer_b\n        rb_commit\n            rb_end_commit\n            RB_WARN_ON(cpu_buffer, !local_read(&cpu_buffer -> committing))\n                                                // activa la advertencia\n\nEl contador de 'committing' puede caer temporalmente a 0 durante una única operación de escritura (dentro de rb_move_tail), creando una ventana donde el intercambio puede tener éxito aunque la escritura aún esté en progreso. Esto lleva a un estado de búfer inconsistente y activa el RB_WARN_ON en rb_commit().\n\nReemplace la verificación del contador de 'committing' con verificaciones de current_context, las cuales se establecen a la entrada de ring_buffer_lock_reserve() y permanecen válidas durante toda la operación de escritura, proporcionando un indicador fiable del estado de ocupado del búfer durante el intercambio.","source":"nvd"}],"published":"2026-08-22T15:31:50.092Z","modified":"2026-10-16T20:17:45.437Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"4239c38fe0b3847e1e6d962c74b41b08ba0e2990","fixed":"26662bc8fced1d668fa1aa146eda085bfc67bd0b","status":"affected"},{"type":"git","introduced":"4239c38fe0b3847e1e6d962c74b41b08ba0e2990","fixed":"6b524e6b234e45c7f5f90d13b042c6f57f80105c","status":"affected"},{"type":"git","introduced":"4239c38fe0b3847e1e6d962c74b41b08ba0e2990","fixed":"597f279b7b4a06412e3d965e98cc36e181cdbede","status":"affected"},{"type":"git","introduced":"4239c38fe0b3847e1e6d962c74b41b08ba0e2990","fixed":"22709117d9ae95e52673685f98caac7c356a8227","status":"affected"},{"type":"git","introduced":"4239c38fe0b3847e1e6d962c74b41b08ba0e2990","fixed":"ad7e10c7ea89af45ac1bf1814855d45da472703d","status":"affected"},{"type":"git","introduced":"4239c38fe0b3847e1e6d962c74b41b08ba0e2990","fixed":"5b926fb04cb9ef3156dcf88c69a59d3d1a1c4f9f","status":"affected"},{"type":"git","introduced":"4239c38fe0b3847e1e6d962c74b41b08ba0e2990","fixed":"5e6e2a18c20e88167d414f666032792e8bf19b80","status":"affected"},{"type":"git","introduced":"4239c38fe0b3847e1e6d962c74b41b08ba0e2990","fixed":"f27bdc43077e4fcb5557dfc315ee8d91e741f483","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.5","status":"unaffected"},{"type":"semver","introduced":"5.10.266","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.217","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.184","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.153","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.105","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.45","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.9","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","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/26662bc8fced1d668fa1aa146eda085bfc67bd0b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6b524e6b234e45c7f5f90d13b042c6f57f80105c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/597f279b7b4a06412e3d965e98cc36e181cdbede","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/22709117d9ae95e52673685f98caac7c356a8227","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ad7e10c7ea89af45ac1bf1814855d45da472703d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5b926fb04cb9ef3156dcf88c69a59d3d1a1c4f9f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5e6e2a18c20e88167d414f666032792e8bf19b80","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f27bdc43077e4fcb5557dfc315ee8d91e741f483","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T19:01:56.298Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74601","url":"https://www.cve.org/CVERecord?id=CVE-2026-74601","licence":"CVE Terms of Use","modified":"2026-10-16T19:06:00.447Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74601","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74601","licence":"Public domain","modified":"2026-10-16T20:17:45.437Z"}],"updatedAt":"2026-11-25T22:59:34.891Z","epss":{"score":0.00136,"percentile":0.03221,"date":"2026-12-01T12:00:22.000Z"}}