eeprom: at24: fix memory corruption race condition
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b20eb4c1f0261eebe6e1b9221c0d6e4048837778 · < f42c97027fb75776e2e9358d16bf4a99aeb04cf2| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
eeprom: at24: fix memory corruption race condition
If the eeprom is not accessible, an nvmem device will be registered, the read will fail, and the device will be torn down. If another driver accesses the nvmem device after the teardown, it will reference invalid memory.
Move the failure point before registering the nvmem device.
From the CVE record · Linux
The Linux kernel's at24 EEPROM driver has a race condition that can cause an invalid memory reference. If an EEPROM is inaccessible, the driver may register an nvmem device before a read fails and the device is torn down; another driver accessing it afterward can trigger memory corruption. The input does not specify an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with the at24 EEPROM driver should check their deployments; affected versions are not specified.