{"id":"CVE-2025-68339","aliases":["CVE-2025-68339"],"related":[],"kind":"vulnerability","state":"published","title":"atm/fore200e: Fix possible data race in fore200e_open()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\natm/fore200e: Fix possible data race in fore200e_open()\n\nProtect access to fore200e->available_cell_rate with rate_mtx lock in the\nerror handling path of fore200e_open() to prevent a data race.\n\nThe field fore200e->available_cell_rate is a shared resource used to track\navailable bandwidth. It is concurrently accessed by fore200e_open(),\nfore200e_close(), and fore200e_change_qos().\n\nIn fore200e_open(), the lock rate_mtx is correctly held when subtracting\nvcc->qos.txtp.max_pcr from available_cell_rate to reserve bandwidth.\nHowever, if the subsequent call to fore200e_activate_vcin() fails, the\nfunction restores the reserved bandwidth by adding back to\navailable_cell_rate without holding the lock.\n\nThis introduces a race condition because available_cell_rate is a global\ndevice resource shared across all VCCs. If the error path in\nfore200e_open() executes concurrently with operations like\nfore200e_close() or fore200e_change_qos() on other VCCs, a\nread-modify-write race occurs.\n\nSpecifically, the error path reads the rate without the lock. If another\nCPU acquires the lock and modifies the rate (e.g., releasing bandwidth in\nfore200e_close()) between this read and the subsequent write, the error\npath will overwrite the concurrent update with a stale value. This results\nin incorrect bandwidth accounting.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\natm/fore200e: Fix possible data race in fore200e_open()\n\nProtect access to fore200e->available_cell_rate with rate_mtx lock in the\nerror handling path of fore200e_open() to prevent a data race.\n\nThe field fore200e->available_cell_rate is a shared resource used to track\navailable bandwidth. It is concurrently accessed by fore200e_open(),\nfore200e_close(), and fore200e_change_qos().\n\nIn fore200e_open(), the lock rate_mtx is correctly held when subtracting\nvcc->qos.txtp.max_pcr from available_cell_rate to reserve bandwidth.\nHowever, if the subsequent call to fore200e_activate_vcin() fails, the\nfunction restores the reserved bandwidth by adding back to\navailable_cell_rate without holding the lock.\n\nThis introduces a race condition because available_cell_rate is a global\ndevice resource shared across all VCCs. If the error path in\nfore200e_open() executes concurrently with operations like\nfore200e_close() or fore200e_change_qos() on other VCCs, a\nread-modify-write race occurs.\n\nSpecifically, the error path reads the rate without the lock. If another\nCPU acquires the lock and modifies the rate (e.g., releasing bandwidth in\nfore200e_close()) between this read and the subsequent write, the error\npath will overwrite the concurrent update with a stale value. This results\nin incorrect bandwidth accounting.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha corregido la siguiente vulnerabilidad:\\n\\natm/fore200e: Corrige una posible condición de carrera de datos en fore200e_open()\\n\\nProtege el acceso a fore200e -> available_cell_rate con el bloqueo rate_mtx en la ruta de manejo de errores de fore200e_open() para evitar una condición de carrera de datos.\\n\\nEl campo fore200e -> available_cell_rate es un recurso compartido utilizado para rastrear el ancho de banda disponible. Es accedido concurrentemente por fore200e_open(), fore200e_close() y fore200e_change_qos().\\n\\nEn fore200e_open(), el bloqueo rate_mtx se mantiene correctamente al restar vcc -> qos.txtp.max_pcr de available_cell_rate para reservar ancho de banda. Sin embargo, si la llamada posterior a fore200e_activate_vcin() falla, la función restaura el ancho de banda reservado añadiendo de nuevo a available_cell_rate sin mantener el bloqueo.\\n\\nEsto introduce una condición de carrera porque available_cell_rate es un recurso global del dispositivo compartido entre todos los VCC. Si la ruta de error en fore200e_open() se ejecuta concurrentemente con operaciones como fore200e_close() o fore200e_change_qos() en otros VCC, se produce una condición de carrera de lectura-modificación-escritura.\\n\\nEspecíficamente, la ruta de error lee la tasa sin el bloqueo. Si otra CPU adquiere el bloqueo y modifica la tasa (por ejemplo, liberando ancho de banda en fore200e_close()) entre esta lectura y la escritura posterior, la ruta de error sobrescribirá la actualización concurrente con un valor obsoleto. Esto resulta en una contabilidad de ancho de banda incorrecta.","source":"nvd"}],"published":"2025-12-23T13:58:24.955Z","modified":"2026-10-19T21:10:00.160Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"1b60f42a639999c37da7f1fbfa1ad29cf4cbdd2d","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"bd1415efbab507b9b995918105eef953013449dd","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"ed34c70d88e2b8b9bc6c3ede88751186d6c6d5d1","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"9917ba597cf95f307778e495f71ff25a5064d167","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"667ac868823224374f819500adc5baa2889c7bc5","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"6610361458e7eb6502dd3182f586f91fcc218039","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"82fca3d8a4a34667f01ec2351a607135249c9cff","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.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.12","status":"unaffected"},{"type":"semver","introduced":"5.10.247","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.197","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.159","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.119","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.61","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.11","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","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/1b60f42a639999c37da7f1fbfa1ad29cf4cbdd2d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bd1415efbab507b9b995918105eef953013449dd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ed34c70d88e2b8b9bc6c3ede88751186d6c6d5d1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9917ba597cf95f307778e495f71ff25a5064d167","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/667ac868823224374f819500adc5baa2889c7bc5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6610361458e7eb6502dd3182f586f91fcc218039","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/82fca3d8a4a34667f01ec2351a607135249c9cff","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68339","url":"https://www.cve.org/CVERecord?id=CVE-2025-68339","licence":"CVE Terms of Use","modified":"2026-05-11T21:51:16.850Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68339","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68339","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:09.812Z","epss":{"score":0.00205,"percentile":0.11044,"date":"2026-12-01T12:00:22.000Z"}}