Naprawa indeksu enkodera strumienia poza zakresem w AMD display
Linux Linux
W skrócie
W jądrze systemu Linux rozwiązano następującą podatność: drm/amd/display: Naprawa indeksu enkodera strumienia poza zakresem v3. eng_id może być ujemne, a stream_enc_regs[] może być indeksowane poza zakresem. eng_id jest używane bezpośrednio jako indeks do stream_enc_regs[], który ma tylko 5 wpisów. Gdy eng_id wynosi 5 (ENGINE_ID_DIGF) lub jest ujemne, może to spowodować dostęp do pamięci poza końcem tablicy. Dodaj sprawdzenie zakresu przy użyciu ARRAY_SIZE() przed użyciem eng_id jako indeksu. Rzutowanie na typ unsigned odrzuca również wartości ujemne. Pozwala to uniknąć dostępu poza zakres. Naprawia poniższy błąd smatch: dcn*_resource.c: stream_encoder_create() may index stream_enc_regs[eng_id] out of bounds (size 5). drivers/gpu/drm/amd/amdgpu/../display/dc/resource/dcn351/dcn351_resource.c 1246 static struct stream_encoder *dcn35_stream_encoder_create( 1247 enum engine_id eng_id, 1248 struct dc_context *ctx) 1249 { ... 1255 1256 /* Mapping of VPG, AFMT, DME register blocks to DIO block instance */ 1257 if (eng_id <= ENGINE_ID_DIGF) { ENGINE_ID_DIGF is 5. should <= be <? Unrelated but, ugh, why is Smatch saying that "eng_id" can be negative? end_id is type signed long, but there are checks in the caller which prevent it from being negative. 1258 vpg_inst = eng_id; 1259 afmt_inst = eng_id; 1260 } else 1261 return NULL; 1262 ... 1281 1282…
Pełny opis źródłowy
W jądrze systemu Linux rozwiązano następującą podatność: drm/amd/display: Naprawa indeksu enkodera strumienia poza zakresem v3. eng_id może być ujemne, a stream_enc_regs[] może być indeksowane poza zakresem. eng_id jest używane bezpośrednio jako indeks do stream_enc_regs[], który ma tylko 5 wpisów. Gdy eng_id wynosi 5 (ENGINE_ID_DIGF) lub jest ujemne, może to spowodować dostęp do pamięci poza końcem tablicy. Dodaj sprawdzenie zakresu przy użyciu ARRAY_SIZE() przed użyciem eng_id jako indeksu. Rzutowanie na typ unsigned odrzuca również wartości ujemne. Pozwala to uniknąć dostępu poza zakres. Naprawia poniższy błąd smatch: dcn*_resource.c: stream_encoder_create() may index stream_enc_regs[eng_id] out of bounds (size 5). drivers/gpu/drm/amd/amdgpu/../display/dc/resource/dcn351/dcn351_resource.c 1246 static struct stream_encoder *dcn35_stream_encoder_create( 1247 enum engine_id eng_id, 1248 struct dc_context *ctx) 1249 { ... 1255 1256 /* Mapping of VPG, AFMT, DME register blocks to DIO block instance */ 1257 if (eng_id <= ENGINE_ID_DIGF) { ENGINE_ID_DIGF is 5. should <= be <? Unrelated but, ugh, why is Smatch saying that "eng_id" can be negative? end_id is type signed long, but there are checks in the caller which prevent it from being negative. 1258 vpg_inst = eng_id; 1259 afmt_inst = eng_id; 1260 } else 1261 return NULL; 1262 ... 1281 1282 dcn35_dio_stream_encoder_construct(enc1, ctx, ctx->dc_bios, 1283 eng_id, vpg, afmt, --> 1284 &stream_enc_regs[eng_id], ^^^^^^^^^^^^^^^^^^^^^^^ This stream_enc_regs[] array has 5 elements so we are one element beyond the end of the array. ... 1287 return &enc1->base; 1288 } v2: use explicit bounds check as suggested by Roman/Dan; avoid unsigned int cast v3: The compiler already knows how to compare the two values, so the cast (int) is not needed. (Roman)
Opis źródłowy · CVE List / CNA
Wpływ na system
Podsumowanie CVSS v3.1
- Opublikowano:
- Zaktualizowano:
- EPSS:
- 0,12%
- Wykorzystanie w atakach:
- Niepotwierdzone
- Kampanie ransomware:
- Niepotwierdzone
- Wektor ataku:
- Lokalny
Podatne produkty
Producent, produkt i zakres podatnych wersji.
| Producent | Produkt | Podatne wersje |
|---|---|---|
| Producent:Linux | Linux | Podatne wersje:6.9Pokaż pełny zakres wersji produktu Linux
Zakresy commitów Git (kod źródłowy)
|
| Producent:Red Hat | Red Hat Enterprise Linux 10 | Podatne wersje:Źródło nie podaje zakresu wersji |
| Producent:Red Hat | Red Hat Enterprise Linux 6 | Podatne wersje:Źródło nie podaje zakresu wersji |
| Producent:Red Hat | Red Hat Enterprise Linux 9 | Podatne wersje:Źródło nie podaje zakresu wersji |
| Producent:SUSE | SUSE Linux Enterprise Desktop 15 SP7 | Podatne wersje:Źródło nie podaje zakresu wersji |
| Producent:SUSE | SUSE Linux Enterprise High Availability Extension 15 SP7 | Podatne wersje:Źródło nie podaje zakresu wersji |
| Producent:SUSE | SUSE Linux Enterprise High Availability Extension 16.0 | Podatne wersje:Źródło nie podaje zakresu wersji |
| Producent:SUSE | SUSE Linux Enterprise Module for Basesystem 15 SP7 | Podatne wersje:Źródło nie podaje zakresu wersji |
| Producent:SUSE | SUSE Linux Enterprise Module for Development Tools 15 SP7 | Podatne wersje:Źródło nie podaje zakresu wersji |
| Producent:SUSE | SUSE Linux Enterprise Module for Legacy 15 SP7 | Podatne wersje:Źródło nie podaje zakresu wersji |
1–10 z 26 · Strona 1 z 3
Oceny i parametry CVSS6
Linux · CVE List / CNA (cna)Główna7.8 / 10WysokaCVSS 3.1Szczegóły
- Złożoność ataku
- Niska
- Poufność
- Wysoki
- Integralność
- Wysoki
- Dostępność
- Wysoki
- Wektor ataku
- Lokalny
- Uprawnienia
- Niskie
- Udział użytkownika
- Niewymagany
- Zakres wpływu
- Bez zmian
Wektor źródłowy
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H416baaa9-dc9f-4396-8d5f-8c081fb06d67 · NVD (Secondary)7.8 / 10WysokaCVSS 3.1Szczegóły
- Złożoność ataku
- Niska
- Poufność
- Wysoki
- Integralność
- Wysoki
- Dostępność
- Wysoki
- Wektor ataku
- Lokalny
- Uprawnienia
- Niskie
- Udział użytkownika
- Niewymagany
- Zakres wpływu
- Bez zmian
Wektor źródłowy
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HCVE-2026-46263 · OSV (source-vector)7.8 / 10WysokaCVSS 3.1Szczegóły
- Złożoność ataku
- Niska
- Poufność
- Wysoki
- Integralność
- Wysoki
- Dostępność
- Wysoki
- Wektor ataku
- Lokalny
- Uprawnienia
- Niskie
- Udział użytkownika
- Niewymagany
- Zakres wpływu
- Bez zmian
Wektor źródłowy
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HENISA · ENISA EUVD (aggregator)7.8 / 10WysokaCVSS 3.1Szczegóły
- Złożoność ataku
- Niska
- Poufność
- Wysoki
- Integralność
- Wysoki
- Dostępność
- Wysoki
- Wektor ataku
- Lokalny
- Uprawnienia
- Niskie
- Udział użytkownika
- Niewymagany
- Zakres wpływu
- Bez zmian
Wektor źródłowy
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HRed Hat · Red Hat VEX (adp)5.5 / 10ŚredniaCVSS 3.1Szczegóły
- Złożoność ataku
- Niska
- Poufność
- Brak
- Integralność
- Brak
- Dostępność
- Wysoki
- Wektor ataku
- Lokalny
- Uprawnienia
- Niskie
- Udział użytkownika
- Niewymagany
- Zakres wpływu
- Bez zmian
Wektor źródłowy
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HSUSE · SUSE VEX (adp)5.5 / 10ŚredniaCVSS 3.1Szczegóły
- Złożoność ataku
- Niska
- Poufność
- Brak
- Integralność
- Brak
- Dostępność
- Wysoki
- Wektor ataku
- Lokalny
- Uprawnienia
- Niskie
- Udział użytkownika
- Niewymagany
- Zakres wpływu
- Bez zmian
Wektor źródłowy
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCVSS opisuje dotkliwość, EPSS — prawdopodobieństwo wykorzystania. Brak potwierdzenia ataków nie oznacza braku zagrożenia.
This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Źródła danych i licencje