Race Condition Affecting xen package, versions <4.16.1-r2
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-ALPINE320-XEN-7012606
- published 23 May 2024
- disclosed 9 Jun 2022
Introduced: 9 Jun 2022
CVE-2022-26362 Open this link in a new tabHow to fix?
Upgrade Alpine:3.20
xen
to version 4.16.1-r2 or higher.
NVD Description
Note: Versions mentioned in the description apply only to the upstream xen
package and not the xen
package as distributed by Alpine
.
See How to fix?
for Alpine:3.20
relevant fixed versions and status.
x86 pv: Race condition in typeref acquisition Xen maintains a type reference count for pages, in addition to a regular reference count. This scheme is used to maintain invariants required for Xen's safety, e.g. PV guests may not have direct writeable access to pagetables; updates need auditing by Xen. Unfortunately, the logic for acquiring a type reference has a race condition, whereby a safely TLB flush is issued too early and creates a window where the guest can re-establish the read/write mapping before writeability is prohibited.
References
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OH65U6FTTB5MLH5A6Q3TW7KVCGOG4MYI/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RKRXZ4LHGCGMOG24ZCEJNY6R2BTS4S2Q/
- http://packetstormsecurity.com/files/167718/Xen-TLB-Flush-Bypass.html
- http://www.openwall.com/lists/oss-security/2022/06/09/3
- http://xenbits.xen.org/xsa/advisory-401.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OH65U6FTTB5MLH5A6Q3TW7KVCGOG4MYI/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RKRXZ4LHGCGMOG24ZCEJNY6R2BTS4S2Q/
- https://security.gentoo.org/glsa/202208-23
- https://www.debian.org/security/2022/dsa-5184
- https://xenbits.xenproject.org/xsa/advisory-401.txt