⬢ DragonFlyBSD Kernel Audit
DF-3619 / fix.diff
← back to finding ↓ download raw
--- ci_dpm.c.orig	2026-09-15
+++ ci_dpm.c	2026-09-15
@@ -2258,6 +2258,9 @@ static int ci_get_svi2_voltage_table(str
 	if (voltage_dependency_table == NULL)
 		return -EINVAL;
 
+	if (voltage_dependency_table->count > MAX_VOLTAGE_ENTRIES)
+		return -EINVAL;
+
 	voltage_table->mask_low = 0;
 	voltage_table->phase_delay = 0;