CVE-2025-40222 is a vulnerability in the Linux kernel's serial driver for the sh-sci (SuperH Serial Communication Interface) subsystem. The issue involves improper handling of the RSCI FIFO overrun condition, where the code incorrectly accesses memory outside the bounds of the RSCI port parameters structure due to a mismatch in register handling. This leads to invalid register access warnings and potential instability. The flaw arises because the overrun register for RSCI is treated differently than for other SCIF port types, causing out-of-bounds memory access during error handling.