CVE-2024-39291
위험도 높음 ASEC 언급 2건
- 우선순위 이 사이트의 참고 점수
- 9.31
- 위험도 CVSS 3.1 · 0~10점
- 7.8
- 악용 가능성 EPSS · 30일 안에 공격에 쓰일 확률
- 0.2%
- 공개일 NVD
- 2024-06-24
설명 NVD 원문
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: Fix buffer size in gfx_v9_4_3_init_ cp_compute_microcode() and rlc_microcode() The function gfx_v9_4_3_init_microcode in gfx_v9_4_3.c was generating about potential truncation of output when using the snprintf function. The issue was due to the size of the buffer 'ucode_prefix' being too small to accommodate the maximum possible length of the string being written into it. The string being written is "amdgpu/%s_mec.bin" or "amdgpu/%s_rlc.bin", where %s is replaced by the value of 'chip_name'. The length of this string without the %s is 16 characters. The warning message indicated that 'chip_name' could be up to 29 characters long, resulting in a total of 45 characters, which exceeds the buffer size of 30 characters. To resolve this issue, the size of the 'ucode_prefix' buffer has been reduced from 30 to 15. This ensures that the maximum possible length of the string being written into the buffer will not exceed its size, thus preventing potential buffer overflow and truncation issues. Fixes the below with gcc W=1: drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c: In function ‘gfx_v9_4_3_early_init’: drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c:379:52: warning: ‘%s’ directive output may be truncated writing up to 29 bytes into a region of size 23 [-Wformat-truncation=] 379 | snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_rlc.bin", chip_name); | ^~ ...... 439 | r = gfx_v9_4_3_init_rlc_microcode(adev, ucode_prefix); | ~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c:379:9: note: ‘snprintf’ output between 16 and 45 bytes into a destination of size 30 379 | snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_rlc.bin", chip_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c:413:52: warning: ‘%s’ directive output may be truncated writing up to 29 bytes into a region of size 23 [-Wformat-truncation=] 413 | snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_mec.bin", chip_name); | ^~ ...... 443 | r = gfx_v9_4_3_init_cp_compute_microcode(adev, ucode_prefix); | ~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c:413:9: note: ‘snprintf’ output between 16 and 45 bytes into a destination of size 30 413 | snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_mec.bin", chip_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
위험도 세부 항목 CVSS 3.1
- 공격 경로
- 로컬(장비 안) AV:L
- 공격 난이도
- 낮음(쉬움) AC:L
- 필요한 권한
- 일반 사용자 PR:L
- 사용자 행동 필요
- 필요 없음 UI:N
- 영향 범위
- 그 제품 안 S:U
- 정보 유출(기밀성)
- 높음 C:H
- 데이터 변조(무결성)
- 높음 I:H
- 서비스 중단(가용성)
- 높음 A:H
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
조치 방법 8행
Microsoft 조치 (KB 업데이트) 8행
| 출처 | 플랫폼·제품 | 방식 | 패키지 | 수정된 버전 | 권고문RHSA 등 | 내용 |
|---|---|---|---|---|---|---|
| Microsoft | azl3 kernel 6.6.29.1-5 on Azure Linux 3.0 | 패치(업데이트) | CBL-Mariner Releases | 6.6.35.1-4 | CBL-Mariner Releases | 보안 업데이트 |
| Microsoft | azl3 kernel 6.6.35.1-4 on Azure Linux 3.0 | 패치(업데이트) | CBL-Mariner Releases | 6.6.35.1-4 | CBL-Mariner Releases | 보안 업데이트 |
| Microsoft | Azure Linux 3.0 ARM | 패치(업데이트) | kernel | 6.6.35.1-4 | kernel | CBL-Mariner |
| Microsoft | Azure Linux 3.0 x64 | 패치(업데이트) | kernel | 6.6.35.1-4 | kernel | CBL-Mariner |
| Microsoft | CBL Mariner 2.0 ARM | 패치(업데이트) | kernel | 5.15.160.1-1 | kernel | CBL-Mariner |
| Microsoft | CBL Mariner 2.0 x64 | 패치(업데이트) | kernel | 5.15.160.1-1 | kernel | CBL-Mariner |
| Microsoft | cbl2 kernel 5.15.160.1-1 on CBL Mariner 2.0 | 패치(업데이트) | CBL-Mariner Releases | 5.15.160.1-1 | CBL-Mariner Releases | 보안 업데이트 |
| Microsoft | cbl2 kernel 5.15.180.1-1 on CBL Mariner 2.0 | 패치(업데이트) | CBL-Mariner Releases | 5.15.160.1-1 | CBL-Mariner Releases | 보안 업데이트 |
살펴볼 장비 초안
분류 대상이 아닙니다 (지금은 KEV 만 분류합니다). 안전하다는 뜻이 아닙니다.
단계별 판정 예시 환경
시나리오 미작성 — 이 CVE 는 단계별 판정을 하지 않았습니다. 안전하다는 뜻이 아닙니다.
출처별 내용 2건
ASEC 리눅스 커널 보안 업데이트 권고 (CVE-2024-39291, CVE-2024-38664, CVE-2024-38667) 2024-07-01
개요 Linux Kernel에서 발생하는 취약점을 해결하는 업데이트를 발표하였습니다. 해당하는 버전 사용자는 최신 버전으로 업데이트하시기 바랍니다. 대상 제품 CVE-2024-39291 Linux Kernel 버전 : ~ 6.5(제외) Linux Kernel 버전 : ~ 6.6(포함) ~ 6.6.33(제외) Linux Kernel 버전 : ~ 6.9(포함) ~ 6.9.4(제외) Linux Kernel 버전 : 6.10.0-rc1 CVE-2024-38664 Linux Kernel 버전 : ~ 6.2(제외) Linux Kernel 버전 : ~ 6.6(포함) ~ 6.6.33(제외) Linux Kernel 버전 : ~ 6.9(포함) ~ 6.9.4(제외) Linux Kernel 버전 : 6.10.0-rc1 CVE-2024-38667 Linux Kernel 버전 : ~ 5.7(제외) Linux Kernel 버전 : ~ 6.1(포함) ~ 6.1.93(제외) Linux Kernel 버전 : ~ 6.6(포함) ~ 6.6.33(제외) Linux Kernel 버전 : ~ 6.9(포함) ~ 6.9.4(제외) Linux Kernel 버전 : 6.10.0-rc1 해결된 취약점 CVE-2024-39291: Linux Kernel amdgpu 드라이버에서 snprintf 함수 사용 시 버퍼 오버플로우로 인한 잠재적인 출력 데이터가 잘릴 수 있는 취약점(7.8 High, CVSS V3.1 등록일자: 2024.06.26) CVE-2024-38664: Linux Kernel zynqmp_dpsub 드라이버에서 DRM 브리지 등록 문제로 인한 잠재적 잠금 경고 및 동기화 취약점(7.8 High, CVSS V3.1 등록일자: 2024.06.26) CVE-2024-38667: Linux Kernel RISC-V Architecture 에서 보조 부트 하트의 유휴 thread가 pt_regs와 스택이 겹쳐져 손상될 수 있는 취약점(7.8 High, CVSS V3.1 등록일자: 2024.06.26) 취약점 조치 최신 업데이트를 통해 취약점 패치가 제공되었습니다. 참고 사이트의 안내에 따라 최신 취약점 패치 버전으로 업데이트 하시기 바랍니다. CVE-2024-39291, CVE-2024-38664 Linux Kernel 버전 : 6.6.33, 6.9.4, 6.10-rc1 CVE-2024-38667 Linux Kernel 버전 : 6.1.93, 6.6.33, 6.9.4, 6.10-rc2 참고 사이트 [1] CVE-2024-39291 Detail https://nvd.nist.gov/vuln/detail/CVE-2024-39291#VulnChangeHistorySection [2] CVE-2024-39291: Fix buffer size in gfx_v9_4_3_init_ cp_compute_microcode() and rlc_microcode() https://lore.kernel.org/linux-cve-announce/2024062432-CVE-2024-39291-be2c@gregkh/ [3] CVE-2024-38664 Detail https://nvd.nist.gov/vuln/detail/CVE-2024-38664#VulnChangeHistorySection [4] CVE-2024-38664: Always register bridge https://lore.kernel.org/linux-cve-announce/2024062457-CVE-2024-38664-a9e3@gregkh/ [5] CVE-2024-38667 Detail https://nvd.nist.gov/vuln/detail/CVE-2024-38667#VulnChangeHistorySection [6] CVE-2024-38667: prevent pt_regs corruption for secondary idle threads https://lore.kernel.org/linux-cve-announce/2024062431-CVE-2024-38667-83a6@gregkh/
ASEC 영어·일본어 등 다른 언어 글 1건
ASEC Linux Kernel Security Update Advisory (CVE-2024-39291, CVE-2024-38664, CVE-2024-38667) 2024-07-01
Overview An update has been released to address vulnerability in the Linux Kernel. Users of affected versions are advised to update to the latest version. Affected Products CVE-2024-39291 Linux Kernel Versions: ~ 6.5 (excluded) Linux Kernel Versions : 6.6 (inclusive) ~ 6.6.33 (excluded) Linux Kernel Versions : 6.9 (inclusive) ~ 6.9.4 (exclusive) Linux Kernel Version : 6.10.0-rc1 CVE-2024-38664 Linux Kernel Versions : ~ 6.2 (excluded) Linux Kernel Versions : 6.6 (inclusive) ~ 6.6.33 (excluded) Linux Kernel Versions : 6.9 (inclusive) ~ 6.9.4 (exclusive) Linux Kernel Version : 6.10.0-rc1 CVE-2024-38667 Linux Kernel Versions : ~ 5.7 (excluded) Linux Kernel Versions : 6.1 (inclusive) ~ 6.1.93 (excluded) Linux Kernel Versions : 6.6 (inclusive) ~ 6.6.33 (exclusive) Linux Kernel Versions : 6.9 (inclusive) ~ 6.9.4 (exclusive) Linux Kernel Version : 6.10.0-rc1 Resolved Vulnerabilities CVE-2024-39291: Buffer overflow in the snprintf function in the Linux Kernel amdgpu driver, potentially resulting in truncated output data (7.8 High, CVSS V3.1 Date Added: 2024.06.26) CVE-2024-38664: Potential lock warning and synchronization vulnerability due to DRM bridge registration issues in the Linux Kernel zynqmp_dpsub driver (7.8 High, CVSS V3.1 Date Added: 2024.06.26) CVE-2024-38667: Linux Kernel RISC-V Architecture in which idle threads in the secondary boot heart can be corrupted due to stack overlap with pt_regs (7.8 High, CVSS V3.1 Date Added: 2024.06.26) vulnerability Action Vulnerability patches have been made available in the latest update. Please follow the instructions on the Referenced Sites to update to the latest Vulnerability Patches version. Cve-2024-39291, cve-2024-38664 Linux Kernel Versions: 6.6.33, 6.9.4, 6.10-rc1 CVE-2024-38667 Linux Kernel Versions: 6.1.93, 6.6.33, 6.9.4, 6.10-rc2 Referenced Sites [1] CVE-2024-39291 Detail https://nvd.nist.gov/vuln/detail/CVE-2024-39291#VulnChangeHistorySection [2] CVE-2024-39291: Fix buffer size in gfx_v9_4_3_init_ cp_compute_microcode() and rlc_microcode() https://lore.kernel.org/linux-cve-announce/2024062432-CVE-2024-39291-be2c@gregkh/ [3] CVE-2024-38664 Detail https://nvd.nist.gov/vuln/detail/CVE-2024-38664#VulnChangeHistorySection [4] CVE-2024-38664: Always register bridge https://lore.kernel.org/linux-cve-announce/2024062457-CVE-2024-38664-a9e3@gregkh/ [5] CVE-2024-38667 Detail https://nvd.nist.gov/vuln/detail/CVE-2024-38667#VulnChangeHistorySection [6] CVE-2024-38667: prevent pt_regs corruption for secondary idle threads https://lore.kernel.org/linux-cve-announce/2024062431-CVE-2024-38667-83a6@gregkh/
자동 추천 장비와 근거 참고용
분류 체계(취약점 종류 CWE → 공격 유형 CAPEC → 공격 기법 ATT&CK) 매핑으로 계산한 후보입니다. 범위가 넓어 관련이 적은 장비가 섞입니다. 해당 장비가 이 공격을 탐지한다고 확인한 것은 아니며, 위의 '살펴볼 장비' 와 단계별 판정에는 쓰지 않습니다.
| 장비 | 방법 | 근거 경로 |
|---|---|---|
| 엔드포인트 탐지·대응 EDR | cwe | CWE-120 (직접 매핑) |
| 침입방지시스템 IPS | cwe | CWE-120 (직접 매핑) |
취약점 종류 CWE
- 버퍼 오버플로 — CWE-120 Buffer Copy without Checking Size of Input
영향받는 제품 CPE · 3건
| 제조사 | 제품 | 영향받는 버전 | 표준 표기CPE |
|---|---|---|---|
| linux | linux_kernel | 6.5 이상 6.6.33 미만 | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| linux | linux_kernel | 6.7 이상 6.9.4 미만 | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| linux | linux_kernel | cpe:2.3:o:linux:linux_kernel:6.10:rc1:*:*:*:*:*:* |
참고 링크 6건
- 패치 https://git.kernel.org/stable/c/19bd9537b6bc1c882df25206c15917214d8e9460
- 패치 https://git.kernel.org/stable/c/acce6479e30f73ab0872e93a75aed1fb791d04ec
- 패치 https://git.kernel.org/stable/c/f1b6a016dfa45cedc080d36fa5d6f22237d80e8b
- 패치 https://git.kernel.org/stable/c/19bd9537b6bc1c882df25206c15917214d8e9460
- 패치 https://git.kernel.org/stable/c/acce6479e30f73ab0872e93a75aed1fb791d04ec
- 패치 https://git.kernel.org/stable/c/f1b6a016dfa45cedc080d36fa5d6f22237d80e8b
용어 설명 CVE · CVSS · EPSS · KEV · NVD …
- CVE 취약점 번호
- 공개된 보안 취약점마다 붙는 국제 고유 번호입니다. 예: CVE-2021-44228(Log4j). 가운데 숫자는 번호를 받은 해입니다.
- CVSS 위험도 점수
- 취약점이 얼마나 위험한지 0~10점으로 매긴 국제 표준 점수입니다. 심각 9.0 이상 · 높음 7.0~8.9 · 중간 4.0~6.9 · 낮음 0.1~3.9. 공격이 얼마나 쉬운지와 피해 크기로 정하며, 실제로 공격받고 있는지는 반영하지 않습니다.
- EPSS 악용 가능성
- 앞으로 30일 안에 실제 공격에 쓰일 확률을 추정한 값(0~100%)입니다. 국제 보안 단체 FIRST 가 매일 계산합니다. 높을수록 먼저 조치하세요.
- KEV 실제 악용 확인
- 미국 사이버보안청(CISA)이 실제 공격에 쓰인 것을 확인한 취약점만 모은 목록입니다. 여기에 있으면 가장 먼저 조치할 대상입니다. '랜섬웨어' 표시는 랜섬웨어 공격에 쓰인 것으로 알려진 것입니다.
- 공격 코드 공개된 PoC
- NVD 참고 링크 중 '공격 코드(Exploit)' 표시가 붙은 것이 있다는 뜻입니다. 누구나 공격을 시도해 볼 수 있으므로 서두르는 게 좋지만, 실제 악용이 확인된 것(KEV)과는 다릅니다.
- NVD 미국 취약점 DB
- 미국 국립표준기술연구소(NIST)가 운영하는 취약점 데이터베이스입니다. CVE 마다 설명·CVSS 점수·영향받는 제품·취약점 종류를 붙입니다. 이 사이트 설명의 원문 출처입니다.
- 우선순위 이 사이트의 참고 점수
- CVSS·KEV·랜섬웨어·EPSS·ASEC 언급·공격 코드 공개를 합쳐 계산한 점수입니다. 높을수록 먼저 살펴보세요. 공식 점수가 아닙니다.
- ASEC 안랩 분석 글
- 안랩 보안대응센터 블로그입니다. 'ASEC 3' 은 분석 글에 그 CVE 번호가 3번 나왔다는 뜻이며, 국내에서 악용이 확인됐다는 뜻은 아닙니다.
- CWE 취약점 종류
- 취약점 종류의 분류 번호입니다. 예: CWE-89 SQL 인젝션, CWE-79 크로스 사이트 스크립팅.
- CPE 영향받는 제품
- 취약점이 있는 제품과 버전을 적는 표준 표기입니다. 예: apache:tomcat 9.0.0~9.0.80.
- KB Microsoft 업데이트 번호
- Microsoft 가 업데이트마다 붙이는 번호입니다. 예: KB5068791. '수정된 버전' 은 업데이트 후의 빌드 번호로, 이보다 낮으면 업데이트가 필요합니다.
- 시나리오 · 번역
- '시나리오' 는 단계별 판정 초안이 있다는 표시입니다(없다고 안전한 것은 아닙니다). '(번역)' 은 Claude 로 기계 번역한 설명입니다.