i2c: smbus: fix NULL function pointer dereference
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 63453b59e41173241c4efe9335815f6432fa8586 · < e3425674ff68dc521c57c6eabad0cbd20a027d85| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
i2c: smbus: fix NULL function pointer dereference
Baruch reported an OOPS when using the designware controller as target only. Target-only modes break the assumption of one transfer function always being available. Fix this by always checking the pointer in __i2c_transfer.
[wsa: dropped the simplification in core-smbus to avoid theoretical regressions]
From the CVE record · Linux
The Linux kernel can dereference a NULL function pointer in __i2c_transfer when a DesignWare controller is used in target-only mode, causing an OOPS. The input does not specify an attack path, authentication requirement, or user interaction.
Engineers running Linux kernels with a DesignWare I2C controller in target-only mode should check their installations; affected versions were not specified.