🔍 CVE-2024-40975

5.5
CVSS Score
MEDIUM
2024-07-12
2026-10-30 13:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 x86 Android 태블릿 플랫폼 코드(x86-android-tablets)에서 장치를 해제할 때 등록 역순을 지키지 않아 발생하는 문제입니다. 소비자가 아직 참조 중인 장치(예: regulator)가 먼저 해제되면 경고(WARN)가 발생하거나 잘못된 동작이 일어날 수 있으며, 이를 해결하기 위해 모든 장치를 역순으로 해제하도록 수정되었습니다.

💡 쉬운 설명

리눅스 커널이 Android 태블릿 하드웨어 장치를 제거할 때 순서를 잘못 지켜 문제가 생길 수 있었습니다. 이 문제는 장치 간 의존 관계를 고려해 역순으로 제거하도록 수정되었습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: platform/x86: x86-android-tablets: Unregister devices in reverse order Not all subsystems support a device getting removed while there are still consumers of the device with a reference to the device. One example of this is the regulator subsystem. If a regulator gets unregistered while there are still drivers holding a reference a WARN() at drivers/regulator/core.c:5829 triggers, e.g.: WARNING: CPU: 1 PID: 1587 at drivers/regulator/core.c:5829 regulator_unregister Hardware name: Intel Corp. VALLEYVIEW C0 PLATFORM/BYT-T FFD8, BIOS BLADE_21.X64.0005.R00.1504101516 FFD8_X64_R_2015_04_10_1516 04/10/2015 RIP: 0010:regulator_unregister Call Trace: <TASK> regulator_unregister devres_release_group i2c_device_remove device_release_driver_internal bus_remove_device device_del device_unregister x86_android_tablet_remove On the Lenovo Yoga Tablet 2 series the bq24190 charger chip also provides a 5V boost converter output for powering USB devices connected to the micro USB port, the bq24190-charger driver exports this as a Vbus regulator. On the 830 (8") and 1050 ("10") models this regulator is controlled by a platform_device and x86_android_tablet_remove() removes platform_device-s before i2c_clients so the consumer gets removed first. But on the 1380 (13") model there is a lc824206xa micro-USB switch connected over I2C and the extcon driver for that controls the regulator. The bq24190 i2c-client *must* be registered first, because that creates the regulator with the lc824206xa listed as its consumer. If the regulator has not been registered yet the lc824206xa driver will end up getting a dummy regulator. Since in this case both the regulator provider and consumer are I2C devices, the only way to ensure that the consumer is unregistered first is to unregister the I2C devices in reverse order of in which they were created. For consistency and to avoid similar problems in the future change x86_android_tablet_remove() to unregister all device types in reverse order.

📍 영향받는 시스템

Linux 커널 패치 이전 버전의 x86 기반 Android 태블릿용 플랫폼 드라이버를 사용하는 시스템 (Lenovo Yoga Tablet 2 등)

⚔️ 공격 벡터

로컬 환경에서 장치 제거/해제 과정을 유발하는 방식으로 커널 경고 및 불안정 동작을 일으킬 수 있으며, 원격 공격 경로는 명확하지 않음

🛡️ 대응 방법

배포판 제공 최신 Linux 커널 업데이트를 적용하거나 CVE-2024-40975 수정이 포함된 커널 버전으로 업그레이드

🔧 검증 코드

출력된 커널 버전이 배포판의 CVE-2024-40975 수정 패키지/커널 버전 이상인지 보안 공지나 changelog와 대조하여 확인 (수정 여부가 불확실하면 배포판 보안 추적기 참고)

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

💻 영향받는 소프트웨어

Linux Kernel