CVE-2022-42332

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-42332
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-42332.json
Related
Published
2023-03-21T13:15:11Z
Modified
2024-02-04T11:02:46.179441Z
Details

x86 shadow plus log-dirty mode use-after-free In environments where host assisted address translation is necessary but Hardware Assisted Paging (HAP) is unavailable, Xen will run guests in so called shadow mode. Shadow mode maintains a pool of memory used for both shadow page tables as well as auxiliary data structures. To migrate or snapshot guests, Xen additionally runs them in so called log-dirty mode. The data structures needed by the log-dirty tracking are part of aformentioned auxiliary data. In order to keep error handling efforts within reasonable bounds, for operations which may require memory allocations shadow mode logic ensures up front that enough memory is available for the worst case requirements. Unfortunately, while page table memory is properly accounted for on the code path requiring the potential establishing of new shadows, demands by the log-dirty infrastructure were not taken into consideration. As a result, just established shadow page tables could be freed again immediately, while other code is still accessing them on the assumption that they would remain allocated.

References

Affected packages

Alpine:v3.15 / xen

Package

Name
xen

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0The exact introduced commit is unknown
Fixed
4.15.5-r0

Affected versions

4.*

4.0.1-r0
4.0.1-r1
4.0.1-r2
4.0.1-r3
4.1.0-r0
4.1.0-r1
4.1.0-r2
4.1.1-r0
4.1.1-r1
4.1.1-r2
4.1.2-r3
4.1.2-r4
4.1.2-r5
4.1.2-r6
4.1.2-r7
4.1.2-r8
4.1.2-r9
4.1.2-r10
4.1.2-r11
4.1.2-r12
4.1.3-r0
4.2.0-r0
4.2.0-r1
4.2.0-r2
4.2.0-r3
4.2.0-r4
4.2.0-r5
4.2.0-r6
4.2.0-r7
4.2.1-r0
4.2.1-r1
4.2.1-r2
4.2.1-r3
4.2.1-r4
4.2.1-r5
4.2.1-r6
4.2.1-r7
4.2.1-r8
4.2.1-r9
4.2.1-r10
4.2.1-r11
4.2.2-r0
4.2.2-r2
4.2.2-r3
4.2.2-r4
4.2.2-r5
4.2.2-r6
4.2.2-r7
4.2.2-r8
4.2.2-r9
4.2.2-r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-r1
4.14.1-r2
4.14.1-r3
4.14.1-r4
4.14.1-r5
4.15.0-r0
4.15.0-r1
4.15.0-r2
4.15.0-r3
4.15.0-r4
4.15.0-r5
4.15.1-r0
4.15.1-r1
4.15.1-r2
4.15.2-r0
4.15.2-r1
4.15.2-r2
4.15.3-r0
4.15.3-r1
4.15.3-r2
4.15.3-r3
4.15.4-r0
4.15.4-r1
4.15.4-r2
4.15.4-r3

Alpine:v3.16 / xen

Package

Name
xen

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0The exact introduced commit is unknown
Fixed
4.16.4-r0

Affected versions

4.*

4.0.1-r0
4.0.1-r1
4.0.1-r2
4.0.1-r3
4.1.0-r0
4.1.0-r1
4.1.0-r2
4.1.1-r0
4.1.1-r1
4.1.1-r2
4.1.2-r3
4.1.2-r4
4.1.2-r5
4.1.2-r6
4.1.2-r7
4.1.2-r8
4.1.2-r9
4.1.2-r10
4.1.2-r11
4.1.2-r12
4.1.3-r0
4.2.0-r0
4.2.0-r1
4.2.0-r2
4.2.0-r3
4.2.0-r4
4.2.0-r5
4.2.0-r6
4.2.0-r7
4.2.1-r0
4.2.1-r1
4.2.1-r2
4.2.1-r3
4.2.1-r4
4.2.1-r5
4.2.1-r6
4.2.1-r7
4.2.1-r8
4.2.1-r9
4.2.1-r10
4.2.1-r11
4.2.2-r0
4.2.2-r2
4.2.2-r3
4.2.2-r4
4.2.2-r5
4.2.2-r6
4.2.2-r7
4.2.2-r8
4.2.2-r9
4.2.2-r10
4.2.2-r11
4.3.0-r0
4.3.0-r1
4.3.0-r2
4.3.0-r3
4.3.0-r4
4.3.0-r5
4.3.0-r6
4.3.0-r7
4.3.0-r8
4.3.1-r0
4.3.1-r1
4.3.1-r2
4.3.1-r3
4.3.2-r0
4.3.2-r1
4.3.2-r2
4.3.2-r3
4.3.2-r4
4.3.3-r0
4.4.1-r0
4.4.1-r1
4.4.1-r2
4.4.1-r3
4.4.1-r4
4.4.1-r5
4.4.1-r6
4.4.1-r7
4.4.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.7.1-r2
4.7.1-r3
4.7.1-r4
4.7.1-r5
4.7.2-r0
4.8.1-r0
4.8.1-r1
4.8.1-r2
4.8.1-r3
4.8.1-r4
4.9.0-r0
4.9.0-r1
4.9.0-r2
4.9.0-r3
4.9.0-r4
4.9.0-r5
4.9.0-r6
4.9.0-r7
4.9.0-r8
4.9.1-r0
4.9.1-r1
4.9.1-r2
4.9.1-r3
4.10.0-r0
4.10.0-r1
4.10.0-r2
4.10.0-r3
4.10.1-r0
4.10.1-r1
4.10.1-r2
4.11.0-r0
4.11.0-r1
4.11.1-r0
4.11.1-r1
4.12.0-r0
4.12.0-r1
4.12.0-r2
4.12.0-r3
4.12.1-r0
4.12.1-r1
4.12.1-r2
4.13.0-r0
4.13.0-r1
4.13.0-r2
4.13.0-r3
4.13.0-r4
4.13.1-r0
4.13.1-r1
4.13.1-r2
4.13.1-r3
4.13.1-r4
4.13.1-r5
4.14.0-r0
4.14.0-r1
4.14.0-r2
4.14.0-r3
4.14.1-r0
4.14.1-r1
4.14.1-r2
4.14.1-r3
4.14.1-r4
4.14.1-r5
4.15.0-r0
4.15.0-r1
4.15.0-r2
4.15.0-r3
4.15.0-r4
4.15.0-r5
4.15.1-r0
4.15.1-r1
4.15.1-r2
4.15.1-r3
4.16.0-r0
4.16.0-r1
4.16.1-r0
4.16.1-r1
4.16.1-r2
4.16.1-r3
4.16.1-r4
4.16.1-r5
4.16.1-r6
4.16.1-r7
4.16.2-r0
4.16.2-r1
4.16.2-r2
4.16.3-r0

Alpine:v3.18 / xen

Package

Name
xen

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0The exact introduced commit is unknown
Fixed
4.17.0-r5

Affected versions

4.*

4.0.1-r0
4.0.1-r1
4.0.1-r2
4.0.1-r3
4.1.0-r0
4.1.0-r1
4.1.0-r2
4.1.1-r0
4.1.1-r1
4.1.1-r2
4.1.2-r3
4.1.2-r4
4.1.2-r5
4.1.2-r6
4.1.2-r7
4.1.2-r8
4.1.2-r9
4.1.2-r10
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1
4.10.0-r2
4.10.0-r3
4.10.1-r0
4.10.1-r1
4.10.1-r2
4.11.0-r0
4.11.0-r1
4.11.1-r0
4.11.1-r1
4.12.0-r0
4.12.0-r1
4.12.0-r2
4.12.0-r3
4.12.1-r0
4.12.1-r1
4.12.1-r2
4.13.0-r0
4.13.0-r1
4.13.0-r2
4.13.0-r3
4.13.0-r4
4.13.1-r0
4.13.1-r1
4.13.1-r2
4.13.1-r3
4.13.1-r4
4.13.1-r5
4.14.0-r0
4.14.0-r1
4.14.0-r2
4.14.0-r3
4.14.1-r0
4.14.1-r1
4.14.1-r2
4.14.1-r3
4.14.1-r4
4.14.1-r5
4.15.0-r0
4.15.0-r1
4.15.0-r2
4.15.0-r3
4.15.0-r4
4.15.0-r5
4.15.1-r0
4.15.1-r1
4.15.1-r2
4.15.1-r3
4.16.0-r0
4.16.0-r1
4.16.1-r0
4.16.1-r1
4.16.1-r2
4.16.1-r3
4.16.1-r4
4.16.1-r5
4.16.1-r6
4.16.1-r7
4.16.2-r0
4.16.2-r1
4.16.2-r2
4.16.2-r3
4.17.0-r0
4.17.0-r1
4.17.0-r2
4.17.0-r3
4.17.0-r4

Alpine:v3.19 / xen

Package

Name
xen

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0The exact introduced commit is unknown
Fixed
4.17.0-r5

Affected versions

4.*

4.0.1-r0
4.0.1-r1
4.0.1-r2
4.0.1-r3
4.1.0-r0
4.1.0-r1
4.1.0-r2
4.1.1-r0
4.1.1-r1
4.1.1-r2
4.1.2-r3
4.1.2-r4
4.1.2-r5
4.1.2-r6
4.1.2-r7
4.1.2-r8
4.1.2-r9
4.1.2-r10
4.1.2-r11
4.1.2-r12
4.1.3-r0
4.2.0-r0
4.2.0-r1
4.2.0-r2
4.2.0-r3
4.2.0-r4
4.2.0-r5
4.2.0-r6
4.2.0-r7
4.2.1-r0
4.2.1-r1
4.2.1-r2
4.2.1-r3
4.2.1-r4
4.2.1-r5
4.2.1-r6
4.2.1-r7
4.2.1-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