Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 55ee5e67a59a1b6f388d7a1c7b24022145f47a3e before 80f3605991461679c298ea2045c350ee3cf36de3; affected 55ee5e67a59a1b6f388d7a1c7b24022145f47a3e before 104d89cf5b01cb66ff975d91ed42f61b3904df53; affected 55ee5e67a59a1b6f388d7a1c7b24022145f47a3e before 3078d82e7fe9048a2b90a992e71af7cd7ef881fa; affected 55ee5e67a59a1b6f388d7a1c7b24022145f47a3e before 866a35735e56b9dc81cbc33899255134adf6d8b3; affected 55ee5e67a59a1b6f388d7a1c7b24022145f47a3e before d06fea9b85f038690f55e72fe0c45e113715a85a; affected 55ee5e67a59a1b6f388d7a1c7b24022145f47a3e before 0e28ca1c3204b51068579defc904a0dfba5e5c57; affected 55ee5e67a59a1b6f388d7a1c7b24022145f47a3e before 754f8efe45f87e3a9c6871b645b2f9d46d1b407b |
| Linux / Linux | affected 5.14; unaffected 0 before 5.14; unaffected 5.15.216 through 5.15.*; unaffected 6.1.183 through 6.1.*; unaffected 6.6.148 through 6.6.*; unaffected 6.12.101 through 6.12.*; unaffected 6.18.42 through 6.18.*; unaffected 7.1.6 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
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