net/smc: fix UAF on lgr list traversal in smcr_port_err()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 541afa10c126b6c22c2a805a559c70cc41fd156e · < a9b968e42690d784c241a0761c10253271f7df5d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net/smc: fix UAF on lgr list traversal in smcr_port_err()
smcr_port_err() traverses smc_lgr_list.list without holding smc_lgr_list.lock, allowing a concurrent smc_lgr_terminate_sched() to free an lgr while it is still being dereferenced.
Hold smc_lgr_list.lock across the traversal. Update smc_ib_gid_check() to call smcr_port_err() after releasing the lock.
From the CVE record · Linux
The Linux kernel's smcr_port_err() traverses a list without holding its lock, allowing a concurrent operation to free an entry while it is still being used. This can cause a use-after-free; the input does not specify how an attacker could trigger it or whether access or user interaction is required.
Engineers running the Linux kernel should check whether their kernel includes the affected net/smc code; affected versions were not specified.