Received: by 2002:a05:7208:20d2:b0:82:bbfa:f723 with SMTP id z18csp52707rbz; Tue, 7 May 2024 10:15:53 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVeOThzu8hKhKLZuK41kvXgXqcHP+ESzwEXs25+Uh0pUkt8KQ7tC+kFHvz7n6CvKliLkysRdgKd1K9Ad5La+Jd4c0uEt8ldW9De14J0IA== X-Google-Smtp-Source: AGHT+IHnQrH0qLw8V2tJNn6jzHVkB1fF08iXXbmcOKNChwOduKQ3BctEpTltPkWh9Twts0uA5I7N X-Received: by 2002:ad4:5aea:0:b0:6a0:a03e:6f15 with SMTP id 6a1803df08f44-6a1514e923emr5302656d6.58.1715102153030; Tue, 07 May 2024 10:15:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715102153; cv=none; d=google.com; s=arc-20160816; b=oCdTFwYXPPtyPqp6kvOwlIUheS9Yxqoqw2nWhJbUhHQPMqHzbpyoc7bnhGEmiGNU5H amALGFtPaU8CvbTc2yT6j3Vpej89ISuS98CGH85GnoSkolubIUjbQxfRBuxwt4nbwNzC 8PXuswvOHn9bJqxyDPk/QScVIVuS7Oy3Xk+boV722Z9Dvzt8BBqXqeNl5yAhDGl2JUTh lI1XguhyVW3NQmP4ydkaaHUScZY1TvIWjUv9/mT7H0ecPuWx6xUoNu7CMniVAd/sxMtV fvZkNMqGZOvzRloh6Z3ly6rR2VrMQoNTzn8X6jtYBP7zTYzoxbr2OuI43/nwD5x+2vkA Jspw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:date:message-id:cc:from:to:mime-version :content-transfer-encoding:dkim-signature:delivered-to:reply-to :list-id:list-subscribe:list-unsubscribe:list-help:list-post :precedence:mailing-list; bh=bjJTywfWaY2JlU0ugZOq5fY/zAJLvPujOreQwU8D4R4=; fh=257tbQTaiNwyB4xGRq2qlZ18W/hQQPvCU7lOFFZLY6Q=; b=vshGDyRTRsgy8kDPFT/DZE54tdfTG5f+B39k0pX2MOkUmkiRIme3Af+w0gtMYwkPQ4 oh6GoZVKMhNBjXLLTaMU8FgAQDOPflJhOXRdor4Dtsz6Gmok4e2+OYeOG1Wa+qGDzDnJ SyeVGl62Dt35iUJSfcJ0Od1GZ6dVEmw6JpiAM9+nKH6SMFQgb/aIZueLr38MvRCZTKQ4 BsMg91vTUMEnZK892cPuU6crXFsWepDLeEjckp1O9ykAAG32cmpsuBqDKdiSkQHovcdl eiwo3kQs4Bq7ayqQAkfN10mgivMykQDtYsCsuaggZQAZxP3u/HeVSZBXoxDfjPLiH4dx lR1g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@xen.org header.s=20200302mail header.b=X1KAGgf7; spf=pass (google.com: domain of oss-security-return-30131-linux.lists.archive=gmail.com@lists.openwall.com designates 193.110.157.125 as permitted sender) smtp.mailfrom="oss-security-return-30131-linux.lists.archive=gmail.com@lists.openwall.com" Return-Path: Received: from second.openwall.net (second.openwall.net. [193.110.157.125]) by mx.google.com with SMTP id t11-20020a05621421ab00b0069b3cff59afsi11904317qvc.329.2024.05.07.10.15.52 for ; Tue, 07 May 2024 10:15:53 -0700 (PDT) Received-SPF: pass (google.com: domain of oss-security-return-30131-linux.lists.archive=gmail.com@lists.openwall.com designates 193.110.157.125 as permitted sender) client-ip=193.110.157.125; Authentication-Results: mx.google.com; dkim=fail header.i=@xen.org header.s=20200302mail header.b=X1KAGgf7; spf=pass (google.com: domain of oss-security-return-30131-linux.lists.archive=gmail.com@lists.openwall.com designates 193.110.157.125 as permitted sender) smtp.mailfrom="oss-security-return-30131-linux.lists.archive=gmail.com@lists.openwall.com" Received: (qmail 19635 invoked by uid 550); 7 May 2024 17:13:12 -0000 Mailing-List: contact oss-security-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: oss-security@lists.openwall.com Delivered-To: mailing list oss-security@lists.openwall.com Received: (qmail 19562 invoked from network); 7 May 2024 17:13:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Date:Message-Id:Subject:CC:From:To:MIME-Version: Content-Transfer-Encoding:Content-Type; bh=bjJTywfWaY2JlU0ugZOq5fY/zAJLvPujOreQwU8D4R4=; b=X1KAGgf7pWupjNkulgkUiPk5f5 OxvAaTXUYiW8WuXBN42V0BNdpswxKPcrlUVMLfd/VH5Is0O0MZISmDKqa9aaq4l17pKCJrcCuGsJ1 UwnDNkDtHEupN/LOfx5MVAhTGN23ZE5TFJBIvnXnR06qvqJpRiS1Izo+9N3iLr53658Y=; Content-Type: multipart/mixed; boundary="=separator"; charset="utf-8" Content-Transfer-Encoding: binary MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) To: xen-announce@lists.xen.org, xen-devel@lists.xen.org, xen-users@lists.xen.org, oss-security@lists.openwall.com From: Xen.org security team CC: Xen.org security team Message-Id: Date: Tue, 07 May 2024 17:12:54 +0000 Subject: [oss-security] Xen Security Advisory 457 v1 - Linux/xen-netback: Memory leak due to missing cleanup function --=separator Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Xen Security Advisory XSA-457 Linux/xen-netback: Memory leak due to missing cleanup function ISSUE DESCRIPTION ================= In netback, xennet_alloc_one_rx_buffer() failed to call the appropriate clean-up function, resulting in a memory leak. IMPACT ====== A malicious guest userspace process can exhaust memory resources within the guest kernel, potentially leading to a system crash (Denial of Service). It is not known whether it can be triggered remotely. VULNERABLE SYSTEMS ================== Systems with guests running Linux 5.9 and later with Xen PV network devices are affected. MITIGATION ========== For HVM guests, using emulated network devices will avoid this issue. RESOLUTION ========== The following patch in Linux resolves the issue: https://git.kernel.org/torvalds/c/037965402a010898d34f4e35327d22c0a95cd51f A copy of which has attached. xsa457.patch Linux 5.9 $ sha256sum xsa457* 9d6ae3da27f1ff92f9f45c800822beecda603d6dea6726207cee6c768416114c xsa457.patch $ NOTE ON THE LACK OF EMBARGO =========================== The issue was reported initially on a public bug tracker and fixed in public before it was realized that there was a security aspect. -----BEGIN PGP SIGNATURE----- iQFABAEBCAAqFiEEI+MiLBRfRHX6gGCng/4UyVfoK9kFAmY6YN8MHHBncEB4ZW4u b3JnAAoJEIP+FMlX6CvZq4kH/0BcaF/4dKqxQ/hYMMoLxcE1kzHn2kAdFPcvxcuu Csk1yLugbvxHgwgp0lI9JjiqzSMt68pN8B9mWbcMBBvA7jGGsJ6Vjp25kQnUToLe FPiAhW/TY+1YXOnhsfn9dHHk1Tv0W5D69QuUuj6zGUvRMdV+WPyA/mGPWnBrJgT+ 5s6tKFxls1JiLdFxuJKqi8Ok8HrX1zE9unSWEUri8SNE2k3h5i29X2v+S8yBv2y0 XBnzr16kL9KKim0sNSErB1QU5BThnDBCFk+7FKAAYGAv5H6N3VLv66DLARCYfPhP iXJU3/+yvAjwZjp5oYtbqHXzdd/m0b/IrF/0ZMLBaoDs0s4= =vfs6 -----END PGP SIGNATURE----- --=separator Content-Type: application/octet-stream; name="xsa457.patch" Content-Disposition: attachment; filename="xsa457.patch" Content-Transfer-Encoding: base64 RnJvbSAwMzc5NjU0MDJhMDEwODk4ZDM0ZjRlMzUzMjdkMjJjMGE5NWNkNTFm IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBKZXNwZXIgRGFuZ2Fh cmQgQnJvdWVyIDxoYXdrQGtlcm5lbC5vcmc+CkRhdGU6IFdlZCwgMjcgTWFy IDIwMjQgMTM6MTQ6NTYgKzAxMDAKU3ViamVjdDogeGVuLW5ldGZyb250OiBB ZGQgbWlzc2luZyBza2JfbWFya19mb3JfcmVjeWNsZQoKTm90aWNlIHRoYXQg c2tiX21hcmtfZm9yX3JlY3ljbGUoKSBpcyBpbnRyb2R1Y2VkIGxhdGVyIHRo YW4gZml4ZXMgdGFnIGluCmNvbW1pdCA2YTViY2Q4NGU4ODYgK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