Description
In the Linux kernel, the following vulnerability has been resolved: iommu/intel: Fix out-of-bounds memset in dmar_latency_disable() dmar_latency_disable() intends to zero out only the single latency_statistic entry for the given type, but the memset size was computed as sizeof(*lstat) * DMAR_LATENCY_NUM, which clears the entire array starting from &lstat[type]. When type > 0, this writes beyond the end of the allocated array, corrupting adjacent memory. Fix by using sizeof(*lstat) to clear only the target entry.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
55ee5e67a59a1b6f388d7a1c7b24022145f47a3e to < 80f3605991461679c298ea2045c350ee3cf36de3affected55ee5e67a59a1b6f388d7a1c7b24022145f47a3e to < 104d89cf5b01cb66ff975d91ed42f61b3904df53affected55ee5e67a59a1b6f388d7a1c7b24022145f47a3e to < 3078d82e7fe9048a2b90a992e71af7cd7ef881faaffected55ee5e67a59a1b6f388d7a1c7b24022145f47a3e to < 866a35735e56b9dc81cbc33899255134adf6d8b3affected55ee5e67a59a1b6f388d7a1c7b24022145f47a3e to < d06fea9b85f038690f55e72fe0c45e113715a85aaffected55ee5e67a59a1b6f388d7a1c7b24022145f47a3e to < 0e28ca1c3204b51068579defc904a0dfba5e5c57affected55ee5e67a59a1b6f388d7a1c7b24022145f47a3e to < 754f8efe45f87e3a9c6871b645b2f9d46d1b407baffected
Linux Linux
Default version status: affected
5.14affected0 to < 5.14unaffected5.15.216 to ≤ 5.15.*unaffected6.1.183 to ≤ 6.1.*unaffected6.6.148 to ≤ 6.6.*unaffected6.12.101 to ≤ 6.12.*unaffected6.18.42 to ≤ 6.18.*unaffected7.1.6 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/80f3605991461679c298ea2045c350ee3cf36de3 ↗
- https://git.kernel.org/stable/c/104d89cf5b01cb66ff975d91ed42f61b3904df53 ↗
- https://git.kernel.org/stable/c/3078d82e7fe9048a2b90a992e71af7cd7ef881fa ↗
- https://git.kernel.org/stable/c/866a35735e56b9dc81cbc33899255134adf6d8b3 ↗
- https://git.kernel.org/stable/c/d06fea9b85f038690f55e72fe0c45e113715a85a ↗
- https://git.kernel.org/stable/c/0e28ca1c3204b51068579defc904a0dfba5e5c57 ↗
- https://git.kernel.org/stable/c/754f8efe45f87e3a9c6871b645b2f9d46d1b407b ↗