nixpkgs/pkgs/os-specific/linux/kernel
Michał Pałka 80e0cda7ff xen: patch for XSAs: 216, 217, 218, 219, 220, 221, 222, and 224
XSA-216 Issue Description:

> The block interface response structure has some discontiguous fields.
> Certain backends populate the structure fields of an otherwise
> uninitialized instance of this structure on their stacks, leaking
> data through the (internal or trailing) padding field.

More: https://xenbits.xen.org/xsa/advisory-216.html

XSA-217 Issue Description:

> Domains controlling other domains are permitted to map pages owned by
> the domain being controlled.  If the controlling domain unmaps such a
> page without flushing the TLB, and if soon after the domain being
> controlled transfers this page to another PV domain (via
> GNTTABOP_transfer or, indirectly, XENMEM_exchange), and that third
> domain uses the page as a page table, the controlling domain will have
> write access to a live page table until the applicable TLB entry is
> flushed or evicted.  Note that the domain being controlled is
> necessarily HVM, while the controlling domain is PV.

More: https://xenbits.xen.org/xsa/advisory-217.html

XSA-218 Issue Description:

> We have discovered two bugs in the code unmapping grant references.
>
> * When a grant had been mapped twice by a backend domain, and then
> unmapped by two concurrent unmap calls, the frontend may be informed
> that the page had no further mappings when the first call completed rather
> than when the second call completed.
>
> * A race triggerable by an unprivileged guest could cause a grant
> maptrack entry for grants to be "freed" twice.  The ultimate effect of
> this would be for maptrack entries for a single domain to be re-used.

More: https://xenbits.xen.org/xsa/advisory-218.html

XSA-219 Issue Description:

> When using shadow paging, writes to guest pagetables must be trapped and
> emulated, so the shadows can be suitably adjusted as well.
>
> When emulating the write, Xen maps the guests pagetable(s) to make the final
> adjustment and leave the guest's view of its state consistent.
>
> However, when mapping the frame, Xen drops the page reference before
> performing the write.  This is a race window where the underlying frame can
> change ownership.
>
> One possible attack scenario is for the frame to change ownership and to be
> inserted into a PV guest's pagetables.  At that point, the emulated write will
> be an unaudited modification to the PV pagetables whose value is under guest
> control.

More: https://xenbits.xen.org/xsa/advisory-219.html

XSA-220 Issue Description:

> Memory Protection Extensions (MPX) and Protection Key (PKU) are features in
> newer processors, whose state is intended to be per-thread and context
> switched along with all other XSAVE state.
>
> Xen's vCPU context switch code would save and restore the state only
> if the guest had set the relevant XSTATE enable bits.  However,
> surprisingly, the use of these features is not dependent (PKU) or may
> not be dependent (MPX) on having the relevant XSTATE bits enabled.
>
> VMs which use MPX or PKU, and context switch the state manually rather
> than via XSAVE, will have the state leak between vCPUs (possibly,
> between vCPUs in different guests).  This in turn corrupts state in
> the destination vCPU, and hence may lead to weakened protections
>
> Experimentally, MPX appears not to make any interaction with BND*
> state if BNDCFGS.EN is set but XCR0.BND{CSR,REGS} are clear.  However,
> the SDM is not clear in this case; therefore MPX is included in this
> advisory as a precaution.

More: https://xenbits.xen.org/xsa/advisory-220.html

XSA-221 Issue Description:

> When polling event channels, in general arbitrary port numbers can be
> specified.  Specifically, there is no requirement that a polled event
> channel ports has ever been created.  When the code was generalised
> from an earlier implementation, introducing some intermediate
> pointers, a check should have been made that these intermediate
> pointers are non-NULL.  However, that check was omitted.

More: https://xenbits.xen.org/xsa/advisory-221.html

XSA-222 Issue Description:

> Certain actions require removing pages from a guest's P2M
> (Physical-to-Machine) mapping.  When large pages are in use to map
> guest pages in the 2nd-stage page tables, such a removal operation may
> incur a memory allocation (to replace a large mapping with individual
> smaller ones).  If this allocation fails, these errors are ignored by
> the callers, which would then continue and (for example) free the
> referenced page for reuse.  This leaves the guest with a mapping to a
> page it shouldn't have access to.
>
> The allocation involved comes from a separate pool of memory created
> when the domain is created; under normal operating conditions it never
> fails, but a malicious guest may be able to engineer situations where
> this pool is exhausted.

More: https://xenbits.xen.org/xsa/advisory-222.html

XSA-224 Issue Description:

> We have discovered a number of bugs in the code mapping and unmapping
> grant references.
>
> * If a grant is mapped with both the GNTMAP_device_map and
> GNTMAP_host_map flags, but unmapped only with host_map, the device_map
> portion remains but the page reference counts are lowered as though it
> had been removed. This bug can be leveraged cause a page's reference
> counts and type counts to fall to zero while retaining writeable
> mappings to the page.
>
> * Under some specific conditions, if a grant is mapped with both the
> GNTMAP_device_map and GNTMAP_host_map flags, the operation may not
> grab sufficient type counts.  When the grant is then unmapped, the
> type count will be erroneously reduced.  This bug can be leveraged
> cause a page's reference counts and type counts to fall to zero while
> retaining writeable mappings to the page.
>
> * When a grant reference is given to an MMIO region (as opposed to a
> normal guest page), if the grant is mapped with only the
> GNTMAP_device_map flag set, a mapping is created at host_addr anyway.
> This does *not* cause reference counts to change, but there will be no
> record of this mapping, so it will not be considered when reporting
> whether the grant is still in use.

More: https://xenbits.xen.org/xsa/advisory-224.html
2017-06-26 07:01:24 +00:00
..
chromiumos-patches linux-chromiumos: remove 3.14 2017-04-23 15:47:46 +02:00
cpu-cgroup-v2-patches kernel: 4.10 is end-of-life 2017-05-20 19:54:18 +03:00
bridge-stp-helper.patch
common-config.nix linux: 4.9.33 -> 4.9.34 2017-06-24 11:22:56 -04:00
crc-regression.patch
generate-config.pl linux: add kernelPreferBuiltin platform option 2017-04-09 22:46:07 +03:00
generic.nix linux: add kernelPreferBuiltin platform option 2017-04-09 22:46:07 +03:00
genksyms-fix-segfault.patch
hardened-config.nix linux_hardened: enable checks on scatter-gather tables 2017-05-18 12:33:42 +02:00
linux-3.10.nix linux: 3.10.104 -> 3.10.105 2017-02-13 18:47:01 -05:00
linux-4.4.nix linux: 4.4.72 -> 4.4.73 2017-06-17 18:45:29 +02:00
linux-4.9.nix linux: 4.9.33 -> 4.9.34 2017-06-24 11:22:56 -04:00
linux-4.11.nix linux: 4.11.6 -> 4.11.7 2017-06-24 11:20:32 -04:00
linux-chromiumos-3.18.nix linux: remove canDisableNetfilterConntrackHelpers feature 2017-01-25 00:28:55 +01:00
linux-hardened-copperhead.nix linux-copperhead: 4.11.6.d -> 4.11.7.a 2017-06-24 14:50:41 -04:00
linux-mptcp.nix linux_mptcp: 0.91.2 -> 0.91.3 (kernel 4.1.38) 2017-03-23 22:36:24 +01:00
linux-rpi.nix linux_rpi: 1.20170303 -> 1.20170427 2017-05-15 11:14:59 +03:00
linux-testing.nix linux: 4.12-rc5 -> 4.12-rc6 2017-06-19 21:21:15 -04:00
manual-config.nix linux: support using gcc plugins 2017-05-06 19:47:27 +02:00
mips-ext3-n32.patch
mips-fpu-sigill.patch
mips-fpureg-emulation.patch
modinst-arg-list-too-long.patch linux-testing: Fix arg list too long in modinst 2016-08-30 06:55:52 +02:00
multithreaded-rsapubkey-asn1.patch linux_{4_8,grsec_nixos}: patch to fix build failure 2016-12-13 07:25:46 -05:00
no-xsave.patch
p9-fixes.patch kernel: fix 9p issues 2017-04-01 15:49:14 +03:00
patches.nix xen: patch for XSAs: 216, 217, 218, 219, 220, 221, 222, and 224 2017-06-26 07:01:24 +00:00
perf-binutils-path.patch perf: Fix perf annotate 2017-06-12 13:23:18 +02:00
perf.diff
perf.nix perf: Fix perf annotate 2017-06-12 13:23:18 +02:00
ubuntu-fan-4.4.patch
ubuntu-unprivileged-overlayfs.patch
update.sh