Odebrany

CVE-2026-99292

opublikowano:
modyfikacja:
Ocena CVSS
n/a
Brak oceny

>_ Opis

Tłumaczenie automatyczne – może zawierać nieścisłości.

W jądrze Linuksa usunięto następującą lukę:

smb: klient: napraw zapis płyty poza granicami w id_mode_to_cifs_acl()

W id_mode_to_cifs_acl(), podczas gdy gałąź chown rezerwuje
sizeof(struct smb_ntsd) + 2 * sizeof(struct smb_sid) (plus
sizeof(struct smb_acl) i najgorszą spację ACE po
zatwierdzić 0ee150794c75 („smb: klient: napraw przepełnienie sterty u właściciela/grupy DACL
przepisz”), gałąź chmod dodaje tylko 2 * sizeof(struct smb_ace) lub
5 * sizeof(struct smb_ace) do secdesclen (lub 1 * sizeof(struct smb_ace)
na Posixie).

Jednakże gałąź chmod wywołuje także funkcję build_sec_desc() ->
copy_sec_desc(), która bezwarunkowo zapisuje identyfikator SID właściciela
pnntsd + sidsoffset i identyfikator SID grupy pod adresem
pnntsd + sidsoffset + sizeof(struct smb_sid) (2 * 68 = łącznie 136 bajtów),
i set_chmod_dacl() zawsze zapisuje nagłówek struct smb_acl (8 bajtów)
nawet jeśli deskryptor źródła ma dacloffset == 0. Gdy zabezpieczenie
deskryptor ma zwarte lub nakładające się identyfikatory SID właściciela/grupy (lub
dacloffset == 0), wywołanie chmod() powoduje niedostateczną alokację pnntsd i zapisanie przeszłości
koniec bufora płyty.

Zarezerwuj sizeof(struct smb_acl) + 2 * sizeof(struct smb_sid) (plus
sizeof(struct smb_ntsd) na ścieżce posix) w gałęzi chmod
id_mode_to_cifs_acl().

>_ Referencje

Dane podatności pochodzą z oficjalnych źródeł (CVE® List / NVD). Opisy po polsku są tłumaczone automatycznie i mogą zawierać nieścisłości – na stronie rekordu można wyświetlić wersję angielską.

This product uses the NVD API but is not endorsed or certified by the NVD.

Copyright © 1999–2026, The MITRE Corporation. CVE is a registered trademark and the CVE logo is a registered trademark of The MITRE Corporation.

CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE®). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy. ALL DOCUMENTS AND THE INFORMATION CONTAINED THEREIN PROVIDED BY MITRE ARE PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.

NVD Terms of Use / CVE® Terms of Use / nvd.nist.gov / cve.org