
CVE-2026-27280 Adobe DNG SDK 렌더링의 범위를 벗어난 쓰기(out-of-bounds write)를 재현하는 PoC DNG 파일과 함께 근본 원인 분석, 패치 diff, Android 실습 환경을 제공합니다.
CVE-2026-27280에 대한 심층 보안 연구, 근본 원인 분석 및 실용적인 Android 테스트 실험실 — **Adobe DNG SDK(소프트웨어 개발 키트)**에서 범위를 벗어난(OOB) 쓰기를 초래하는 치명적인 좌표 공간 불일치 취약점입니다.
| 속성 | 세부 정보 |
|---|---|
| CVE ID | CVE-2026-27280 |
| CWE ID | CWE-787: Out-of-bounds Write |
| 영향받는 구성 요소 | Adobe DNG SDK (C++), dng_render.cpp의 dng_render_task::ProcessArea() 함수 |
| 취약한 버전 | Adobe DNG SDK $\le$ 1.7.1 build 2471 (AOSP revision 1a6d7ea147...) |
| 패치된 버전 | Adobe DNG SDK 1.7.1 build 2502 (AOSP revision 52ff589c0c...) |
| Adobe 공개일 | 2026-03-10 — Adobe Security Bulletin APSB26-30 |
| CVSS v3.1 점수 | 7.8 (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) |
| Android Security Bulletin | 2026년 09월: EoP Critical, Bug ID: A-491543354 (Android 14, 15, 16, 16-QPR2 영향) |
| 발견 연구자 | Brendon Tiszka 및 Mateusz Jurczyk — Google Project Zero |
Adobe DNG(Digital Negative)는 TIFF/IFD 구조를 기반으로 하는 개방형 RAW 이미지 컨테이너 형식입니다. Android 운영 체제에서 libdng_sdk.so는 시스템 계층(/system/lib64/)에 내장되어 카메라 앱, 갤러리 및 시스템 미디어 처리 서비스를 위해 DNG 파일을 디코딩합니다.
Stage3Image라고 합니다.fRowStep = width * channels를 사용하여 각 평면별로 연속 저장됩니다.mask, 0.0에서 1.0까지의 32비트 float)와 결합하여 국소 색상 변환 테이블을 적용할 수 있는 기능입니다. 각 픽셀은 해당 가중치에 따라 색상이 보간됩니다.DefaultCropOrigin, DefaultCropSize): 센서의 활성 영역(ActiveArea)을 기준으로 유효한 자르기 영역을 정의할 수 있습니다.dng_render::Render()를 통해 이미지 타일을 디코딩하고 렌더링할 때, 실행 흐름은 dng_render_task::ProcessArea() 작업으로 전달됩니다:
srcBuffer(소스 이미지 데이터 포함)와 dstBuffer(렌더링 결과 포함).Masked RGB Tables 메타데이터가 있는 경우, 함수는 색상 변환을 수행하기 전에 전체 타일에 대한 해당 마스크를 준비합니다.tempMaskBuffer를 초기화합니다.dng_pixel_buffer::DirtyPixel() 함수는 기록할 메모리 영역의 포인터를 계산하는 공식을 가집니다:
$$\text{Ptr} = \text{fData} + (\text{row} - \text{fArea.t}) \times \text{fRowStep} + (\text{col} - \text{fArea.l}) \times \text{fColStep} + \text{plane} \times \text{fPlaneStep}$$
여기서:
fData: 할당된 메모리 영역의 시작 포인터.fArea: 버퍼의 경계 사각형(fArea.t = top, fArea.l = left). tempMaskBuffer에서 fArea는 **srcArea**에 따라 설정됩니다.row, col: 호출자가 접근하려는 픽셀 좌표.🔴 취약점이 발생하는 지점 (Coordinate Space Mismatch): 빌드 2471의 Masked RGB Tables 전처리 분기에서 소스 코드는
srcArea대신 **dstArea**의 좌표를DirtyPixel()함수에 전달했습니다:// 결함이 있는 소스 코드 (SDK <= 2471): uint32 *dPtr = tempMaskBuffer.DirtyPixel(dstArea.t, dstArea.l, dstMaskPlane);
srcArea가 dstArea와 동일)srcArea = (0, 0, 259, 256)dstArea = (0, 0, 259, 256)DirtyPixel(0, 0, 0) 호출 시:
$$\text{offset} = (0 - 0) \times 256 + (0 - 0) \times 1 = 0 \implies \text{Ptr} = \text{fData}$$DefaultCropOrigin = (8, 8))srcArea): $(8, 8)$에서 $(259, 256)$까지 $\implies$ 크기 $251 \times 248$.dstArea): $(0, 0)$에서 $(251, 248)$까지.tempMaskBuffer 버퍼는 fArea = srcArea로 초기화됨 $\implies \text{fArea.t} = 8, \text{fArea.l} = 8$.fRowStep = 248, fColStep = 1.dstArea.t = 0, dstArea.l = 0으로 DirtyPixel(dstArea.t, dstArea.l, 0)을 호출할 때:
$$\text{offset} = (0 - 8) \times 248 + (0 - 8) \times 1 = -8 \times 248 - 8 = -1984 - 8 = -1992 \text{ 요소}$$float (4바이트) 또는 uint32 유형:
$$\Delta_{\text{bytes}} = -1992 \times 4 = \mathbf{-7.968 \text{ 바이트}}$$ Vùng nhớ cấp phát cho tempMaskBuffer
[ fData ]
|
<----------------------------------+------------------------->
VÙNG NHỚ TRƯỚC BUFFER | VÙNG NHỚ BUFFER HỢP LỆ
[ GHI ĐÈ BỘ ĐỆM - OOB WRITE ] |
^ |
| |
dPtr = fData - 7,968 bytes +------------------------->
Khi vòng lặp thực hiện ghi dữ liệu:
dPtr[j] = bgWeight; // Ghi đè vào vùng nhớ trước fData (Underflow / OOB Write)!
포인터가 할당된 메모리 영역 앞쪽으로 되돌아가 있기 때문에, dPtr[j] = bgWeight 쓰기 작업은 인접한 힙 메모리 청크나 할당자(Scudo Allocator)의 메타데이터 구조를 덮어쓰게 되어 크래시(SIGSEGV)를 발생시키거나 힙을 손상시킵니다.
Google/Adobe는 Adobe DNG SDK 1.7.1 build 2502 업데이트에서 좌표계를 정규화하는 방식으로 취약점을 수정했습니다. 즉, srcArea 자체의 좌표를 사용하여 tempMaskBuffer 버퍼에 접근하도록 변경했습니다.
--- a/source/dng_render.cpp (SDK build 2471 - Vulnerable)
+++ b/source/dng_render.cpp (SDK build 2502 - Patched)
@@ -4021,7 +4021,7 @@ void dng_render_task::ProcessArea (uint32 /* threadIndex */,
dng_pixel_buffer tempMaskBuffer;
...
- uint32 *dPtr = tempMaskBuffer.DirtyPixel (dstArea.t,
- dstArea.l,
+ uint32 *dPtr = tempMaskBuffer.DirtyPixel (srcArea.t,
+ srcArea.l,
dstMaskPlane);
dstArea)의 좌표를 사용하여 소스 영역(srcArea)의 좌표 공간에 속한 버퍼에 인덱싱하는 문제.pointer arithmetic)을 수행할 때, 특히 이미지 처리 모듈(Crop, Resample, Tile Slicing)에서는 항상 좌표 공간과 stride 간의 호환성을 검증해야 한다.