🇰🇷 한글 설명
Linux 커널의 cxl/test 모듈 내 setup_xor_mapping() 함수에서 발생하는 런타임 어설션 오류를 해결한 보안 패치입니다. xormaps 배열의 크기 계산 과정에서 발생하는 잘못된 버퍼 오버플로우 경고(False Positive)를 수정하기 위해 nr_maps 변수를 조기에 초기화하도록 개선되었습니다.
💡 쉬운 설명
컴퓨터 운영체제의 특정 기능이 작동할 때, 실제로는 문제가 없는데도 시스템이 오류로 착각하여 멈추는 현상을 고쳤습니다. 데이터 저장 공간의 크기를 계산하는 방식을 바로잡아 시스템의 안정성을 높였습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
cxl/test: Fix __fortify_panic
Fix a runtime assertion in setup_xor_mapping(). Fortify complains that it
is potentially overflowing the xormaps array per __counted_by(nr_maps).
Quiet the false positive by initializing @nr_maps earlier.
memcpy: detected buffer overflow: 32 byte write of buffer size 0
WARNING: lib/string_helpers.c:1036 at __fortify_report+0x4d/0xa0, CPU#8: modprobe/2728
Call Trace:
__fortify_panic+0xd/0xf
setup_xor_mapping+0x6c/0xa0 [cxl_translate]
[ dj: Fixed up @nr_entries to @nr_maps in commit log. ]
📍 영향받는 시스템
Linux Kernel (cxl/test 모듈을 사용하는 시스템)
⚔️ 공격 벡터
직접적인 공격 가능성은 매우 낮음 (커널 내부의 잘못된 경고로 인한 시스템 중단 가능성)
🛡️ 대응 방법
최신 Linux 커널 업데이트를 통해 해당 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.