Katalog CVE

CVE-2025-21738

WysokieCVSS 7.8
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.22%

Percentyl 13 - wyżej niż 13% wszystkich znanych CVE

Streszczenie

W jądrze Linux w podsystemie libata-sff wykryto błąd umożliwiający zapis poza przydzielony bufor podczas obsługi poleceń ATA PIO. Funkcja ata_pio_sector() nie miała zabezpieczenia przed zapisem poza buforem, w przeciwieństwie do podobnej funkcji __atapi_pio_bytes(). Może to prowadzić do nadpisania losowej pamięci.

Ocena ryzyka

Atakujący może wysłać specjalnie spreparowane polecenie SCSI (np. ATA_16 PASS-THROUGH z ATA_NOP i protokołem PIO), powodując zapis poza buforem i potencjalnie uszkodzenie pamięci jądra, co może prowadzić do awarii systemu lub eskalacji uprawnień.

Rekomendacja

Zastosuj łatkę z jądra Linux, która dodaje w ata_pio_sector() sprawdzenie granic bufora, podobne do tego w __atapi_pio_bytes().

Inne podatności w Linux kernel

Zobacz wszystkie
Oryginalny opis (angielski, źródło NVD)

In the Linux kernel, the following vulnerability has been resolved: ata: libata-sff: Ensure that we cannot write outside the allocated buffer reveliofuzzing reported that a SCSI_IOCTL_SEND_COMMAND ioctl with out_len set to 0xd42, SCSI command set to ATA_16 PASS-THROUGH, ATA command set to ATA_NOP, and protocol set to ATA_PROT_PIO, can cause ata_pio_sector() to write outside the allocated buffer, overwriting random memory. While a ATA device is supposed to abort a ATA_NOP command, there does seem to be a bug either in libata-sff or QEMU, where either this status is not set, or the status is cleared before read by ata_sff_hsm_move(). Anyway, that is most likely a separate bug. Looking at __atapi_pio_bytes(), it already has a safety check to ensure that __atapi_pio_bytes() cannot write outside the allocated buffer. Add a similar check to ata_pio_sector(), such that also ata_pio_sector() cannot write outside the allocated buffer.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS