CVE-2026-72084
KritikTeknik Veri (Otomatik)
- CVSS Skoru
- 9.8
- EPSS
- —
- CWE
- —
- KEV Durumu
- Hayır
Yayım tarihi: 15 Ağustos 2026
Linux çekirdeğinde aşağıdaki güvenlik açığı çözülmüştür: scsi: target: Alınan tampona PR-OUT TransportID ayrıştırmasını bağlıyor core_scsi3_decode_spec_i_port() ve core_scsi3_emulate_register_and_move() ham PERSISTENT RESERVE OUT parametre tamponunu target_parse_pr_out_transport_id()'e geçirir, ancak geçerli bayt sayısını söylemez. Bir iSCSI TransportID (FORMAT CODE 01b) için, iscsi_parse_pr_out_transport_id() ",i,0x" ISID ayırıcısını sınırsız bir strstr() ile bulur (ve hata yolunda adı daha da sınırsız bir "%s" ile yazdırır). Bir başlatıcı, ",i,0x" alt dizesi veya bir NUL sonlandırıcı içermeyen bir TransportID sunabilir, böylece parametre listesi tamponun sonuna kadar dolar ve tarama tamponun dışına çıkar. Parametre listesi birden fazla sayfayı kapsıyorsa, tampon bir çok sayfalı vmap'tir (transport_kmap_data_sg()), bu nedenle aşırı okuma trailing vmalloc koruma sayfasına giderek ve hatalara neden olur (KASAN: vmalloc-out-of-bounds in strstr). Bu, bir iSCSI TPG aracılığıyla dışa aktarılan bir cihaza bir PR OUT teslim eden herhangi bir kumaşa erişilebilirdir, bu da bir konuk için vhost-scsi'yi de içerir. Alınan bayt sayısını ayrıştırıcıya geçirin ve iSCSI TransportID'nin kendi self-tanım uzunluğunu (ADDITIONAL LENGTH + 4) bir kez, baştan itibaren doğrulayın: minimum spc4r17 altında veya alınan tampondan daha büyükse reddedin, ardından ayırıcı aramasını, ISID gezintisini ve ad kopyasını bu uzunlukla sınırlayın. Bu, çağırıcıların zaten parse sonrasında gerçekleştirdiği uzunluk kontrolüdür (core_scsi3_decode_spec_i_port() tid_len ile tpdl'yi karşılaştırır, core_scsi3_emulate_register_and_move() bunu data_length'e karşı doğrular), taramanın önüne alınmıştır. Ayrıca, sonlandırılmamış adın sınırsız "%s" ini bırakın. Adı i_str'ye kopyalamadan önce, her format dalında açık sınırlar amaçlarını belirtmek yerine sessizce kısaltmak yerine, açık ad uzunluğu kontrolleri ekleyin: FORMAT CODE 00b için, tanımlayıcı gövdesi (tid_len - 4 bayt) i_str[TRANSPORT_IQN_LEN]'e sığmıyorsa reddedin; FORMAT CODE 01b için, ad bölümü (ayırıcıya kadar &buf[4]'ten itibaren) sığmıyorsa reddedin. Her iki kontrol de her format dalında sınırların amacını açıkça belirtir. Burada, ayrıca ",i,0x" ayırıcısı tanımlayıcının çok sonunda olan bir FORMAT CODE 01b
Orijinal açıklama (İngilizce)
In the Linux kernel, the following vulnerability has been resolved: scsi: target: Bound PR-OUT TransportID parsing to the received buffer core_scsi3_decode_spec_i_port() and core_scsi3_emulate_register_and_move() hand the raw PERSISTENT RESERVE OUT parameter buffer to target_parse_pr_out_transport_id() without telling it how many bytes are valid. For an iSCSI TransportID (FORMAT CODE 01b), iscsi_parse_pr_out_transport_id() locates the ",i,0x" ISID separator with an unbounded strstr() (and on the error path prints the name with a further unbounded "%s"). An initiator can submit a TransportID whose iSCSI name contains neither a ",i,0x" substring nor a NUL terminator, filling the parameter list to its end, so the scan runs off the end of the buffer. When the parameter list spans more than one page the buffer is a multi-page vmap (transport_kmap_data_sg()), so the over-read walks into the trailing vmalloc guard page and oopses (KASAN: vmalloc-out-of-bounds in strstr). It is reachable by any fabric that delivers a PR OUT to a device exported through an iSCSI TPG, including a guest via vhost-scsi. Pass the number of received bytes down to the parser and validate the iSCSI TransportID's own self-described length (ADDITIONAL LENGTH + 4) once, up front: reject it if it is below the spc4r17 minimum or larger than the received buffer, then bound the separator search, the ISID walk and the name copy by that length. This is the length check the callers already perform after the parse (core_scsi3_decode_spec_i_port() compares tid_len against tpdl, core_scsi3_emulate_register_and_move() validates it against data_length), moved ahead of the scan. Also drop the unbounded "%s" of the unterminated name. Add per-format explicit name-length checks before copying into i_str, rather than silently truncating with min_t: for FORMAT CODE 00b reject if the descriptor body (tid_len - 4 bytes) cannot fit in i_str[TRANSPORT_IQN_LEN]; for FORMAT CODE 01b reject if the name portion (from &buf[4] up to the separator) cannot fit. Both checks make the bounds intent explicit at each format branch. While here, also reject a FORMAT CODE 01b TransportID whose ",i,0x" separator sits at the very end of the descriptor: that leaves an empty ISID and points the returned port nexus pointer at buf + tid_len, one past the descriptor, which the registration code (__core_scsi3_locate_pr_reg(), __core_scsi3_alloc_registration()) then dereferences as the ISID string -- the same over-read of the parameter buffer for a malformed descriptor.
Referanslar
- https://git.kernel.org/stable/c/004ccd2d3b4ac36a300e05e01df152e5c02a5a82
- https://git.kernel.org/stable/c/03fbc7de8d5e85fc8420e57e8304c855efd453ab
- https://git.kernel.org/stable/c/555a89846ed888d7401b3f7200934c0fbedcbb46
- https://git.kernel.org/stable/c/6ca5de8782e67573a61a6736b6dc0ffe58dcdf59
- https://git.kernel.org/stable/c/842248047ef28dbf3b3f7f49a0ec315054d4dab8
- https://git.kernel.org/stable/c/88c67c3de914e19172e1d878a7625c5b06c20ec5
Bu CVE için henüz editoryal inceleme yapılmadı. Sadece otomatik teknik veri gösteriliyor.