HomeDefectsLIN1025-3349
Acknowledged

LIN1025-3349 : Security Advisory - linux - CVE-2025-38585

Created: Aug 19, 2025    Updated: Jan 11, 2026
Resolved Date: Sep 10, 2025
Found In Version: 10.25.33.1
Severity: Standard
Applicable for: Wind River Linux LTS 25
Component/s: Kernel

Description

In the Linux kernel, the following vulnerability has been resolved:EOL][EOL]staging: media: atomisp: Fix stack buffer overflow in gmin_get_var_int()[EOL][EOL]When gmin_get_config_var() calls efi.get_variable() and the EFI variable[EOL]is larger than the expected buffer size, two behaviors combine to create[EOL]a stack buffer overflow:[EOL][EOL]1. gmin_get_config_var() does not return the proper error code when[EOL]   efi.get_variable() fails. It returns the stale 'ret' value from[EOL]   earlier operations instead of indicating the EFI failure.[EOL][EOL]2. When efi.get_variable() returns EFI_BUFFER_TOO_SMALL, it updates[EOL]   *out_len to the required buffer size but writes no data to the output[EOL]   buffer. However, due to bug #1, gmin_get_var_int() believes the call[EOL]   succeeded.[EOL][EOL]The caller gmin_get_var_int() then performs:[EOL]- Allocates val[CFG_VAR_NAME_MAX + 1] (65 bytes) on stack[EOL]- Calls gmin_get_config_var(dev, is_gmin, var, val, &len) with len=64[EOL]- If EFI variable is >64 bytes, efi.get_variable() sets len=required_size[EOL]- Due to bug #1, thinks call succeeded with len=required_size[EOL]- Executes val[len] = 0, writing past end of 65-byte stack buffer[EOL][EOL]This creates a stack buffer overflow when EFI variables are larger than[EOL]64 bytes. Since EFI variables can be controlled by firmware or system[EOL]configuration, this could potentially be exploited for code execution.[EOL][EOL]Fix the bug by returning proper error codes from gmin_get_config_var()[EOL]based on EFI status instead of stale 'ret' value.[EOL][EOL]The gmin_get_var_int() function is called during device initialization[EOL]for camera sensor configuration on Intel Bay Trail and Cherry Trail[EOL]platforms using the atomisp camera stack.

CREATE(Triage):(User=lchen-cn) [CVE-2025-38585 (https://nvd.nist.gov/vuln/detail/CVE-2025-38585)