🔍 CVE-2026-45902

7.8
CVSS Score
HIGH
2026-05-27
2026-06-24 16:29
✅ 완료

🇰🇷 한글 설명

Linux 커널의 bq256xx 전원 공급 장치 드라이버에서 use-after-free 취약점이 발견되었습니다. IRQ 요청과 power_supply 핸들 등록 순서가 잘못되어, 장치 제거 시 핸들이 해제된 후 인터럽트 핸들러가 호출되어 메모리 손상이나 시스템 충돌을 일으킬 수 있습니다.

💡 쉬운 설명

전원 관리 장치가 꺼지는 과정에서 컴퓨터가 이미 삭제한 정보를 다시 사용하려고 시도하여 시스템이 멈추거나 오류가 발생하는 문제입니다. 장치를 정리하는 순서가 뒤바뀌어 발생하는 일종의 타이밍 문제입니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: power: supply: bq256xx: Fix use-after-free in power_supply_changed() Using the `devm_` variant for requesting IRQ _before_ the `devm_` variant for allocating/registering the `power_supply` handle, means that the `power_supply` handle will be deallocated/unregistered _before_ the interrupt handler (since `devm_` naturally deallocates in reverse allocation order). This means that during removal, there is a race condition where an interrupt can fire just _after_ the `power_supply` handle has been freed, *but* just _before_ the corresponding unregistration of the IRQ handler has run. This will lead to the IRQ handler calling `power_supply_changed()` with a freed `power_supply` handle. Which usually crashes the system or otherwise silently corrupts the memory... Note that there is a similar situation which can also happen during `probe()`; the possibility of an interrupt firing _before_ registering the `power_supply` handle. This would then lead to the nasty situation of using the `power_supply` handle *uninitialized* in `power_supply_changed()`. Fix this racy use-after-free by making sure the IRQ is requested _after_ the registration of the `power_supply` handle.

📍 영향받는 시스템

Linux kernel (bq256xx driver component)

⚔️ 공격 벡터

로컬 시스템에서 장치 드라이버의 제거(removal) 또는 초기화(probe) 과정을 유도하여 메모리 손상 유발

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 IRQ 요청 순서를 수정하십시오.

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel