Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 615304 - <app-emulation/xen-4.8.0-r3: arm memory corruption when freeing p2m pages (XSA-210)
Summary: <app-emulation/xen-4.8.0-r3: arm memory corruption when freeing p2m pages (XS...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Gentoo Security
URL: https://xenbits.xen.org/xsa/advisory-...
Whiteboard: ~3 [noglsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-11 18:21 UTC by Yury German
Modified: 2017-07-16 20:55 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yury German Gentoo Infrastructure gentoo-dev 2017-04-11 18:21:27 UTC
Xen Security Advisory XSA-210

             arm: memory corruption when freeing p2m pages

ISSUE DESCRIPTION
=================

When freeing pages used for stage-2 page tables, the freeing routine
failed to remove these pages from an internally managed list they were
put on during allocation.  The same list node elements are also
used by the hypervisor's page allocator.  Subsequent manipulation of
ARM's private P2M list could therefore corrupt the lists maintained by
the page allocator.  The buggy code is exposed to guests via the
XENMEM_decrease_reservation hypercall.

IMPACT
======

A malicious or buggy guest may corrupt hypervisor state, commonly
leading to a host crash (Denial of Service).  Privilege escalation or
information leaks cannot be excluded.

VULNERABLE SYSTEMS
==================

Only Xen version 4.8 is affected.  Xen versions 4.7 and earlier are not
vulnerable.

Only ARM systems are vulnerable.  X86 based systems are not vulnerable.

MITIGATION
==========

There is no known mitigation.

NOTE REGARDING LACK OF EMBARGO
==============================

The issue was discussed publicly before being recognized as a security
issue.

RESOLUTION
==========

Applying the attached patch resolves this issue.

xsa210.patch           xen-unstable, Xen 4.8.x

$ sha256sum xsa210*
10e26c017c916dcac261c6a3c92656831f0ad037f792940e6faf6905c6e23861  xsa210.patch
$

CREDITS
=======

The initial bug was discovered by Vijay Kilari of Cavium and the
security aspect was diagnosed by Julien Grall of ARM.
Comment 1 Yury German Gentoo Infrastructure gentoo-dev 2017-05-15 16:19:21 UTC
Is this fixed in? - app-emulation/{xen-4.7.2-r1,{xen-pvgrub,sen-tools}-4.7.2} as was stabilized in bug #615980?
Comment 2 Yixun Lan archtester gentoo-dev 2017-05-15 21:41:55 UTC
yes, it's fixed at >=app-emulation/xen-4.8.0-r3, see

commit 5fbfb0c17adb82de0885eec625afe300781927c8
Author: Yixun Lan <dlan@gentoo.org>
Date:   Fri Feb 24 17:33:55 2017 +0800

    app-emulation/xen: fix XSA-210
    
    arm: memory corruption when freeing p2m pages
    
    Package-Manager: Portage-2.3.3, Repoman-2.3.1