CVE-2024-38621

Updated: 2025-12-01 03:37:50.811101

Description:

In the Linux kernel, the following vulnerability has been resolved: media: stk1160: fix bounds checking in stk1160_copy_video() The subtract in this condition is reversed. The ->length is the length of the buffer. The ->bytesused is how many bytes we have copied thus far. When the condition is reversed that means the result of the subtraction is always negative but since it's unsigned then the result is a very high positive value. That means the overflow check is never true. Additionally, the ->bytesused doesn't actually work for this purpose because we're not writing to "buf->mem + buf->bytesused". Instead, the math to calculate the destination where we are writing is a bit involved. You calculate the number of full lines already written, multiply by two, skip a line if necessary so that we start on an odd numbered line, and add the offset into the line. To fix this buffer overflow, just take the actual destination where we are writing, if the offset is already out of bounds print an error and return. Otherwise, write up to buf->length bytes.


Links NIST CIRCL RHEL Ubuntu

Severity

Severity Score
CVSS Version 2.x 0.0
CVSS Version 3.x HIGH 7.1

Status

OS name Project name Version Score Severity Status Errata Last updated

Statement

AlmaLinux 9.2 ESU kernel 5.14.0 7.1 HIGH Not Vulnerable 2025-09-22 20:29:40 CONFIG_VIDEO_STK1160_COMMON is not set, no CONFIG_VIDEO_STK1160
CentOS 7 ELS kernel 3.10.0 7.1 HIGH Released CLSA-2025:1759431860 2025-10-15 20:38:03
CentOS 8.4 ELS kernel 4.18.0 7.1 HIGH Released CLSA-2025:1763731262 2025-11-21 22:01:48
CentOS 8.5 ELS kernel 4.18.0 7.1 HIGH Released CLSA-2025:1763734783 2025-11-21 22:01:49
CentOS Stream 8 ELS kernel 4.18.0 7.1 HIGH Not Vulnerable 2025-10-19 01:10:52
CloudLinux 7 ELS kernel 3.10.0 7.1 HIGH Ignored 2025-09-23 07:59:36 Postponed until request or high risk detected
Oracle Linux 7 ELS kernel 3.10.0 7.1 HIGH Released CLSA-2025:1759431869 2025-10-02 23:18:15
Oracle Linux 7 ELS kernel-uek 5.4.17 7.1 HIGH Already Fixed 2025-10-14 09:03:34
RHEL 7 ELS kernel 3.10.0 7.1 HIGH Released CLSA-2025:1759432250 2025-10-02 23:18:12
Ubuntu 16.04 ELS linux-hwe 4.15.0 7.1 HIGH Released CLSA-2024:1723808285 2024-08-16 12:12:46
Total: 12