🔍 CVE-2026-19548

5.5
CVSS Score
MEDIUM
2026-08-12
2026-11-06 08:17
✅ 완료

🇰🇷 한글 설명

GNU binutils의 ld 링커 내 add_archive_element 함수에서 여러 개의 Use-After-Free 취약점이 발견되었습니다. LTO 플러그인이 활성화된 상태에서 특정 조건의 객체 파일을 처리할 때, 이미 해제된 메모리 주소를 참조하여 프로그램이 충돌하거나 임의 코드가 실행될 수 있습니다.

💡 쉬운 설명

프로그램이 이미 삭제된 메모리 정보를 다시 사용하려고 시도할 때 발생하는 오류입니다. 악의적으로 만들어진 파일을 빌드 과정에 포함시키면 빌드 도구가 멈추거나 해킹될 위험이 있습니다.

🇺🇸 원문 (English)

Multiple Use-After-Free vulnerabilities were found in the add_archive_element function in ld/ldmain.c of the GNU linker (ld), a component of binutils. The root cause is that plugin_maybe_claim() in ld/plugin.c frees the original BFD object via bfd_close/_bfd_delete_bfd when entry->the_bfd->my_archive == NULL, but the caller retains both the original abfd parameter and a shallow copy (orig_input.the_bfd) as dangling pointers. These dangling pointers are subsequently dereferenced at three distinct locations in add_archive_element: 1. Line ~1442: accessing abfd->my_archive via bfd_usrdata(abfd->my_archive) 2. Line ~1493: multiple accesses to abfd and abfd->my_archive in a conditional check and bfd_get_filename call 3. Line ~1525: dereferencing the shallow copy orig_input.the_bfd->my_archive in trace/verbose logging The vulnerability is triggered when LTO plugins are active (link_info.lto_plugin_active is true) and the input object has abfd->my_archive == NULL, which is a valid state for standalone object files. Red Hat builds binutils with --enable-plugins and --enable-lto, confirming the vulnerable code path is compiled in and reachable. An attacker who can supply a crafted object or archive file to a build process using LTO-enabled linking could exploit this flaw to cause a denial of service (linker crash via segmentation fault). Arbitrary code execution is theoretically possible through heap manipulation but is substantially mitigated by hardening measures including stack protector, FORTIFY_SOURCE, ASLR, and PIE. The attack surface is limited to build-time environments — the linker is a development tool not exposed in production runtime. The most realistic exploitation scenario is a supply chain attack introducing a crafted object file as a build dependency in CI/CD pipelines or development environments.

📍 영향받는 시스템

LTO 및 플러그인이 활성화된 GNU binutils (ld 링커 포함)

⚔️ 공격 벡터

CI/CD 파이프라인이나 개발 환경에 조작된 객체/아카이브 파일을 공급하는 공급망 공격

🛡️ 대응 방법

binutils를 최신 보안 패치가 적용된 버전으로 업데이트하십시오.

🔧 검증 코드

출력된 binutils 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인하십시오.

Shell / Script
ld --version 2>/dev/null

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

CI/CD Pipeline