Linux
vfio/qat: fix f_pos race in qat_vf_resume_write()
In the Linux kernel, the following vulnerability has been resolved: vfio/qat: fix f_pos race in qat_vf_resume_write() qat_vf_resume_write() checks filp->f_pos before taking migf->lock, but copies into the migration-state buffer after taking the lock and re-reading the shared file position. Two concurrent writers could therefore pass the bounds check with the old offset, then have the second writer copy after the first advanced f_pos, writing past the end of the migration-state buffer. Take migf->lock before doing the boundary checks.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= bb208810b1abf1c84870cfbe1cc9cf1a1d35c607, < 6465af0004dc1b067129a26ef44f19cdf13bbce6
- >= bb208810b1abf1c84870cfbe1cc9cf1a1d35c607, < d416dcefdbac90d96b22485fd93f28229ad9984b
- >= bb208810b1abf1c84870cfbe1cc9cf1a1d35c607, < b6fd7a40a66485c8aa8156d8fcf50b95cb8ba281
- >= bb208810b1abf1c84870cfbe1cc9cf1a1d35c607, < 4ec5e932e636896e97e4c6a8205b0ac76d52421a
Fixed in 6465af0004dc1b067129a26ef44f19cdf13bbce6, d416dcefdbac90d96b22485fd93f28229ad9984b, b6fd7a40a66485c8aa8156d8fcf50b95cb8ba281, 4ec5e932e636896e97e4c6a8205b0ac76d52421a
- 6.10
Fixed in 0, 6.12.97, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to 6465af0004dc1b067129a26ef44f19cdf13bbce6 or d416dcefdbac90d96b22485fd93f28229ad9984b or b6fd7a40a66485c8aa8156d8fcf50b95cb8ba281 or 4ec5e932e636896e97e4c6a8205b0ac76d52421a or later.
Upgrade Linux to 0 or 6.12.97 or 6.18.40 or 7.1.5 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.