CVE-2025-68339

Linux Kernel - Data Race in fore200e_open() Error Handling

Title source: llm
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: atm/fore200e: Fix possible data race in fore200e_open() Protect access to fore200e->available_cell_rate with rate_mtx lock in the error handling path of fore200e_open() to prevent a data race. The field fore200e->available_cell_rate is a shared resource used to track available bandwidth. It is concurrently accessed by fore200e_open(), fore200e_close(), and fore200e_change_qos(). In fore200e_open(), the lock rate_mtx is correctly held when subtracting vcc->qos.txtp.max_pcr from available_cell_rate to reserve bandwidth. However, if the subsequent call to fore200e_activate_vcin() fails, the function restores the reserved bandwidth by adding back to available_cell_rate without holding the lock. This introduces a race condition because available_cell_rate is a global device resource shared across all VCCs. If the error path in fore200e_open() executes concurrently with operations like fore200e_close() or fore200e_change_qos() on other VCCs, a read-modify-write race occurs. Specifically, the error path reads the rate without the lock. If another CPU acquires the lock and modifies the rate (e.g., releasing bandwidth in fore200e_close()) between this read and the subsequent write, the error path will overwrite the concurrent update with a stale value. This results in incorrect bandwidth accounting.

Scores

EPSS 0.0004
EPSS Percentile 11.7%

Details

Status published
Products (22)
linux/Kernel 2.6.12 - 5.10.247linux
linux/Kernel 5.11.0 - 5.15.197linux
linux/Kernel 5.16.0 - 6.1.159linux
linux/Kernel 6.13.0 - 6.17.11linux
linux/Kernel 6.2.0 - 6.6.119linux
linux/Kernel 6.7.0 - 6.12.61linux
Linux/Linux < 2.6.12
Linux/Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 - 1b60f42a639999c37da7f1fbfa1ad29cf4cbdd2d
Linux/Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 - 6610361458e7eb6502dd3182f586f91fcc218039
Linux/Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 - 667ac868823224374f819500adc5baa2889c7bc5
... and 12 more
Published Dec 23, 2025
Tracked Since Feb 18, 2026