| 제목 | RefindPlusRepo RefindPlus v0.14.2.AB Release NULL Pointer Dereference |
|---|
| 설명 | One potential NPD issue.
The location is in Library/RP_ApfsLib /RP_ApfsIo.c#L199 as the InternalApfsTranslateBlock function may return NULL.
```c
for (Index = 0; Index < JumpStart->NumExtents || EfiFileSize != 0; ++Index) {
BlockIo = InternalApfsTranslateBlock ( // NULL maybe return here.
PrivateData,
JumpStart->RecordExtents[Index].StartPhysicalAddr,
&Lba
);
if (JumpStart->RecordExtents[Index].BlockCount > MAX_UINTN
|| OcOverflowMulUN ((UINTN) JumpStart->RecordExtents[Index].BlockCount, PrivateData->ApfsBlockSize, &ChunkSize)
|| ChunkSize > EfiFileSize) {
FreePool (EfiFile);
return EFI_SECURITY_VIOLATION;
}
Status = BlockIo->ReadBlocks ( // may directly access the NULL here.
BlockIo,
BlockIo->Media->MediaId,
Lba,
ChunkSize,
ChunkPtr
);
if (EFI_ERROR(Status)) {
FreePool (EfiFile);
return Status;
}
``` |
|---|
| 원천 | ⚠️ https://github.com/RefindPlusRepo/RefindPlus/issues/206 |
|---|
| 사용자 | micromilo (UID 84159) |
|---|
| 제출 | 2025. 04. 15. AM 09:42 (1 년도 ago) |
|---|
| 모더레이션 | 2025. 04. 26. AM 10:39 (11 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 306339 [RefindPlusRepo RefindPlus 0.14.2.AB RP_ApfsIo.c InternalApfsTranslateBlock 서비스 거부] |
|---|
| 포인트들 | 20 |
|---|