Xen Security Advisory 55 - Multiple vulnerabilities in libelf PV kernel handling
A message that is not in the archive (sent off-list or not yet received): [email protected]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 21 lines · Xen.org security team
Xen Security Advisory XSA-55 version 4
Multiple vulnerabilities in libelf PV kernel handling
UPDATES IN VERSION 4 ====================
We are sending out a version 4 of this advisory with no files attached. This is because the size of the version 3 advisory email caused delivery problems for some recipients.
This version instead quotes the patchset git changeset ids in xen.git.
UPDATES IN VERSION 3 ====================
Fixed patch series provided. These patches have been as thoroughly reviewed as possible and subjected to various regression testing.
NOTE REGARDING CVE ==================
Quoted 8 lines
We have not yet been assigned a CVE number for this issue.
ISSUE DESCRIPTION =================
The ELF parser used by the Xen tools to read domains' kernels and construct domains has multiple integer overflows, pointer dereferences based on calculations from unchecked input values, and other problems.
Apologies for the delay on this, I tried to tease all the issues apart and ended up taking the cowards way out (which I should have in the first place, apologies to the Xen guys). Please use:
CVE-2013-2194 XEN XSA-55 integer overflows
CVE-2013-2195 XEN XSA-55 pointer dereferences
CVE-2013-2196 XEN XSA-55 other problems
Quoted 144 lines
IMPACT ======
A malicious PV domain administrator who can specify their own kernel can escalate their privilege to that of the domain construction tools (i.e., normally, to control of the host).
Additionally a malicious HVM domain administrator who is able to supply their own firmware ("hvmloader") can do likewise; however we think this would be very unusual and it is unlikely that such configurations exist in production systems.
VULNERABLE SYSTEMS ==================
All Xen versions are affected.
Installations which only allow the use of trustworthy kernels for PV domains are not affected.
MITIGATION ==========
Ensuring that PV guests use only trustworthy kernels will avoid this problem.
RESOLUTION ==========
Applying the appropriate patch series will resolve this issue.
These were attached to v3 of the advisory which can be found here:
http://lists.xen.org/archives/html/xen-devel/2013-06/msg01626.htmlThese are available in xen.git
http://xenbits.xen.org/gitweb/?p=xen.gitgit://xenbits.xen.org/xen.git
http://xenbits.xen.org/git-http/xen.git in the git changesets listed below.xen-unstable:
82cb4113b6ace16de192021de20f6cbd991e478flibxc: Better range check inxc_dom_alloc_segment966070058d02cce9684e30073b61d6465e4b351c
libxc: check blob size before proceeding inxc_dom_check_gzipde7911eaef98b6643d80e4612fe4dcd4528d15b9libxc: range checks inxc_dom_p2m_hostand_guest3d5a1d4733e55e33521cd5004cab1313e5c5d5ff
libxc: check return values from mallocaaebaba5ae225f591e0602e071037a935bb281b6libxc: check failure of xc_dom_*_to_ptr,xc_map_foreign_range2bcee4b3c316379f4b52cb308947eb6db3faf1a0libxc: Add range checking toxc_dom_binloader66fe2726fe8492676f9970b9c2c511bce6186ece
libelf: abolish obsolete macros39bf7b9d0ae534491745e54df5232127c0bddaf1libelf: check loops for running awaya004800f8fc607b96527815c8e3beabcb455d8e0libelf: use only unsigned integers7a549a6aa04dba807f8dd4c1577ab6a7592c4c76
libelf: use C99 bool for booleansc84481fbc7de7d15ff7476b3b9cd2713f81feaa3libelf: Make all callers callelf_check_broken943de71cf07d9d04ccb215bd46153b04930e9f25
libelf: Check pointer references inelf_is_elfbinary65808a8ed41cc7c044f588bd6cab5af0fdc0e029libelf: check all pointer accesses04877847ade4ac9216e9f408fd544ade8f90cf9alibelf: check nul-terminated strings properly50421bd56bf164f490d7d0bf5741e58936de41e8tools/xcutils/readnotes:
adjustprint_l1_mfn_valid_note85256359995587df00001dca22e9a76ba6ea8258libelf: introduce macros for memory access and pointer handling95dd49bed681af93f71a401b0a35bf2f917c6e68libelf/xc_dom_load_elf_symtab: Do not use "syms" uninitialisedf7aa72ec00aec71eed055dac5e8a151966d75c9clibelf: move include of <asm/guest_access.h> to top of file13e2c808f7ea721c8f200062e2b9b977ee924471libelf: abolishelf_svalandelf_access_signed009ddca51504ce80889937e485d44ac0f9290d63
libelf: add `struct elf_binary*' parameter toelf_load_imageb5a869209998fedadfe205d37addbd50a802998blibxc: Fix range checking inxc_dom_pfn_to_ptretc.53bfcf585b09eb4ac2240f89d1ade77421cd2451
libxc: introducexc_dom_seg_to_ptr_pages14573b974850d82de7aebad17e6471d27d847f2clibelf: abolishlibelf-relocate.cXen 4.2.x:
d21d36e84354c04638b60a739a5f7c3d9f8adaf8libxc: Better range check inxc_dom_alloc_segment2a548e22915535ac13694eb38222903bca7245e3
libxc: check blob size before proceeding inxc_dom_check_gzip052a689aa526ca51fd70528d4b0f83dfb2de99c1libxc: range checks inxc_dom_p2m_hostand_guest8dc90d163650ce8aa36ae0b46debab83cc61edb6
libxc: check return values from malloc77c0829fa751f052f7b8ec08287aef6e7ba97bc5libxc: check failure of xc_dom_*_to_ptr,xc_map_foreign_rangeb06e277b1fc08c7da3befeb3ac3950e1d941585dlibxc: Add range checking toxc_dom_binloader3baaa4ffcd3e7dd6227f9bdf817f90e5b75aeda2
libelf: abolish obsolete macros52d8cc2dd3bb3e0f6d51e00280da934e8d91653alibelf: check loops for running awaye673ca50127b6c1263727aa31de0b8bb966ca7a2libelf: use only unsigned integers3fb6ccf2faccaf5e22e33a3155ccc72d732896d8
libelf: use C99 bool for booleansa965b8f80388603d439ae2b8ee7b9b018a079f90libelf: Make all callers callelf_check_brokend0790bdad7496e720416b2d4a04563c4c27e7b95
libelf: Check pointer references inelf_is_elfbinarycc8761371aac432318530c2ddfe2c8234bc0621flibelf: check all pointer accessesdb14d5bd9b6508adfcd2b910f454fae12fa4ba00libelf: check nul-terminated strings properly59f66d58180832af6b99a9e4489031b5c2f627abtools/xcutils/readnotes:
adjustprint_l1_mfn_valid_note40020ab55a1e9a1674ddecdb70299fab4fe8579dlibelf: introduce macros for memory access and pointer handlingde9089b449d2508b1ba05590905c7ebaee00c8c4libelf/xc_dom_load_elf_symtab: Do not use "syms" uninitialised682a04488e7b3bd6c3448ab60599566eb7c6177alibelf: move include of <asm/guest_access.h> to top of file83ec905922b496e1a5756e3a88405eb6c2c6ba88libelf: abolishelf_svalandelf_access_signed035634047d10c678cbb8801c4263747bdaf4e5b1
libelf: add `struct elf_binary*' parameter toelf_load_image8c738fa5c1f3cfcd935b6191b3526f7ac8b2a5bdlibxc: Fix range checking inxc_dom_pfn_to_ptretc.a672da4b2d58ef12be9d7407160e9fb43cac75d9
libxc: introducexc_dom_seg_to_ptr_pages9737484becab4a25159f1e985700eaee89690d34libelf: abolishlibelf-relocate.cXen 4.1.x:
ac63ddd70a5ccf5ebf790f06ea4cd4ed794c3978libxc: check blob size before proceeding inxc_dom_check_gzip6eca85d5c144ee8c899ee3cf8791f9087b15f2e8libxc: range checks inxc_dom_p2m_hostand_guesta2986a7959919bc748784bb75970bfbd42697d3b
libxc: check return values from malloc117a538dbef62f8d39159dea652e633e01b50a9alibxc: check failure of xc_dom_*_to_ptr,xc_map_foreign_range40b76f1fb04af421c1415f7bcb168dfaa6960d0dlibxc: Add range checking toxc_dom_binloader4a3a60d8caee49af6951a672c55b08436a8d1f86
libelf: abolish obsolete macros968c0399159c65e24bb8b9969259e18791e1f4d8libelf: check loops for running away282188ea84b9e0f9c4865f0609e7740f2f28e7b0libxc:
Introducexc_bitops.h86e39ce58e91fe55d4fdbc914cb1955c45acc20e
libelf: use only unsigned integersbd3dba9f435fa59f305407f7d9b34e1e164ddd98libelf: use C99 bool for booleans44c74b1ed31c75ed9026abf62ab7427a46d8027alibelf: Make all callers callelf_check_broken9962d7ffcce97ec2d69a15ef861996b1ead33694libelf: Check pointer references inelf_is_elfbinary39923542bb43e67776c4e8292d4a5a1adef2bd3blibelf: check all pointer accesses8ce60b35beaac91a97b79c004ca6bf5d58e7390blibelf: check nul-terminated strings properly4e46085972d2367dff2345a73361c1c17b47ce73tools/xcutils/readnotes:
adjustprint_l1_mfn_valid_notede49d6e83c3a8c753646b007972140ddbb746ba8libelf: introduce macros for memory access and pointer handling
Quoted 9 lines
4d3339de1fe3cbf7b05487fdb6cadd7267950948libelf/xc_dom_load_elf_symtab: Do not use "syms" uninitialisede719b136b750e5eee87c4647d1846e4e1e70eac0libelf: abolishelf_svalandelf_access_signedf7fb94409c562beec06094141ef262dc85f28dac
libxc: Fix range checking inxc_dom_pfn_to_ptretc.bbf40e6b6d47809f4289a866d7d167c25104ecc0libxc: introducexc_dom_seg_to_ptr_pages64a0206c451920b72a9c5721a6f2427baf99e3dd
libelf: abolishlibelf-relocate.c
- --
Kurt Seifried Red Hat Security Response Team (SRT)
PGP: 0x5E267993 A90B F995 7350 148F 66BF 7554 160D 4553 5E26 7993 -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
iQIcBAEBAgAGBQJRwqqxAAoJEBYNRVNeJnmTHsIP+gMjk22r1tou75ZcDHamVxB4 aOMPuzMa8AwQrzMjVUK9H+VSNPPlchYQF3IWd/pyy5aHRf5FnQPUMlLFV+PB9RHD i81FvKlq9KEKoLVl5WMpgqQFn1mV+A7tR5g73btgux5Pd49OV0xnVXQPp8R9tln0 TDd7bb21xZhd+8qOCa4I416beC4/B7SLD8fFaHQ0ZtOE7f7pUn7Reqo/DjDhgGnd Bfi42LQxeKjU87Rw4k3u7hDSvYEh9rFxYs0NZBWh3i4WIsWY9L4kOsZvnDJJUMaB lu4jhLTmfHDT8350WKdJmUgrPzgZcfavTakviiLlSxaBTd/mphf/sUF0PoftCykZ HqjXv8DFFg+xOBq8DfTMdEZGsBh4NS+xSSsI8pS0qU8my6BtJONKfVDMPP+B7I7F qY3tY+ns7AZgCavbCYGbNsrGpHWCNyzmN94755fvvz31lxqtWaGRiHqYySqwExDO f+uLajX/4jcHq9E42zZoBOcOcV/C+3O7GhaI4sgCrFQe3Ie2dBPgo1rXTlbXgRsW Wl1t6l1m4qv61KoQYvULL+zgzF82r3j3kTTcMYNYchpPNi7VDw1mRs2H2wwhkOTw 9IZA7IOdoKlyvOi/NiTHXRxyzYAoemJDqEqsjHAfTwUlS0WDOTJj/DgBJ/zfk06V WRz82P+Iq2h8wVFhlw7h
=nUHR
-----END PGP SIGNATURE-----