nvme-apple: Use acquire/release for queue enabled state
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 5bd2927aceba181b84286e00aa2f56e117e699c3 · < f61c934aa084b7440fec681be3f4b481eb5a8609| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
nvme-apple: Use acquire/release for queue enabled state
apple_nvme_init_queue() initializes queue state and then marks the queue enabled. The interrupt and request paths check enabled before using that queue state.
The old wmb() after WRITE_ONCE(enabled, true) does not publish the earlier initialization before enabled becomes visible. Use a release store when enabling the queue and acquire loads when testing it.
Although the shutdown-side enabled accesses are not used for publishing queue initialization, use helpers for them as well for consistency.
From the CVE record · Linux
The Linux kernel’s nvme-apple driver can mark a queue enabled before its initialized state is visible to interrupt and request paths. The input does not describe an attacker action, access requirement, user interaction, or resulting impact.
Engineers running Linux kernels with the nvme-apple driver should check their versions; affected versions are not specified.