Description
In the Linux kernel, the following vulnerability has been resolved: ACPI: extlog: Validate elog record length before walking sections extlog_print() copies a fixed ELOG_ENTRY_LEN (4096) bytes from the elog record into elog_buf, then walks the sections using the firmware-controlled data_length. Nothing keeps data_length inside the buffer, so a malformed record walks the section pointer past elog_buf and reads adjacent memory. Unlike the GHES paths, extlog never calls cper_estatus_check(). Reject a record longer than ELOG_ENTRY_LEN and run cper_estatus_check() before walking the sections. The length test alone is not enough: a wrapped length reads back short and passes it, which cper_estatus_check() catches via the header check added earlier. Drop a malformed record with NOTIFY_DONE and without MCE_HANDLED_EXTLOG, since extlog did not consume it.
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
fc8c6b8bb294b7c1b2853808648e7a2cec392b61 to < 9bb7b972a0c277ababeee129524114f84fa2f5edaffected6161c364e378660f059194c81ccd855fd35ec997 to < d127f3f82b64b5140697044790e887dd2e98b5ecaffectedf6ec01da40e4139b41179f046044ee7c4f6370dc to < cae80757dd7b2de42f053481b5236ca194113dd0affectedf6ec01da40e4139b41179f046044ee7c4f6370dc to < 248e7b033f5374cecddc78c74c5163ed7b6121d7affectedf6ec01da40e4139b41179f046044ee7c4f6370dc to < 30e92480482004d40235bd6a89ee9469e3f6dbaeaffectedf6ec01da40e4139b41179f046044ee7c4f6370dc to < 32be865907449b1acdeb5c680d6cff9e9d8889b9affectedf6ec01da40e4139b41179f046044ee7c4f6370dc to < 1dc57e62aeb8e770810fd00f3a29a6a9791c3fa5affectedf6ec01da40e4139b41179f046044ee7c4f6370dc to < e1fd582a8134150aa10c1f0286dbce00cf63b086affected1e1c94a9e73376593fc55278b1080c426e190931affected0e15c89f5b27398e707ab8f865ad7995cb4fb8faaffectedfa0676d94fa4e91e08d30f25145883ffcdd54ab9affected01201fc4c48cfb31d2ef8184f1404205bf99fa45affected5.10.152 to < 5.10.275affected5.15.76 to < 5.15.226affected4.14.298 to < 4.15affected4.19.264 to < 4.20affected5.4.221 to < 5.5affected6.0.6 to < 6.1affected
Linux Linux
Default version status: affected
6.1affected0 to < 6.1unaffected5.10.275 to ≤ 5.10.*unaffected5.15.226 to ≤ 5.15.*unaffected6.1.193 to ≤ 6.1.*unaffected6.6.163 to ≤ 6.6.*unaffected6.12.119 to ≤ 6.12.*unaffected6.18.65 to ≤ 6.18.*unaffected7.3.6 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/9bb7b972a0c277ababeee129524114f84fa2f5ed ↗
- https://git.kernel.org/stable/c/d127f3f82b64b5140697044790e887dd2e98b5ec ↗
- https://git.kernel.org/stable/c/cae80757dd7b2de42f053481b5236ca194113dd0 ↗
- https://git.kernel.org/stable/c/248e7b033f5374cecddc78c74c5163ed7b6121d7 ↗
- https://git.kernel.org/stable/c/30e92480482004d40235bd6a89ee9469e3f6dbae ↗
- https://git.kernel.org/stable/c/32be865907449b1acdeb5c680d6cff9e9d8889b9 ↗
- https://git.kernel.org/stable/c/1dc57e62aeb8e770810fd00f3a29a6a9791c3fa5 ↗
- https://git.kernel.org/stable/c/e1fd582a8134150aa10c1f0286dbce00cf63b086 ↗