From patchwork Thu Oct 18 07:49:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ondrej Mosnacek X-Patchwork-Id: 10646837 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 75F52109C for ; Thu, 18 Oct 2018 07:50:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6885D28609 for ; Thu, 18 Oct 2018 07:50:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5C30328622; Thu, 18 Oct 2018 07:50:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from USFB19PA13.eemsg.mail.mil (uphb19pa10.eemsg.mail.mil [214.24.26.84]) (using TLSv1.2 with cipher DHE-RSA-AES256-SHA256 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B5A9928613 for ; Thu, 18 Oct 2018 07:50:22 +0000 (UTC) X-EEMSG-check-008: 204778034|USFB19PA13_EEMSG_MP9.csd.disa.mil Received: from emsm-gh1-uea10.ncsc.mil ([214.29.60.2]) by USFB19PA13.eemsg.mail.mil with ESMTP/TLS/DHE-RSA-AES256-SHA256; 18 Oct 2018 07:50:20 +0000 X-IronPort-AV: E=Sophos;i="5.54,395,1534809600"; d="scan'208";a="16942955" IronPort-PHdr: 9a23:pUxl7hdu64jY1urDrfOej/4dlGMj4u6mDksu8pMizoh2WeGdxcm6YRON2/xhgRfzUJnB7Loc0qyK6/+mATRIyK3CmUhKSIZLWR4BhJdetC0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IqUs2DRQvaLAqqzxVaEjOkBdSW6but74KkhEcXsJhuU9QBWKwP3oz5yHJVaRQkKacCf8Y/y6NTqMQSUVoMyJ/QxSz2Jl0fbumg+xH4St6mXZmrfwr1SF2bAWztDeqpK8X3z8kvraiu2Yvo3tAG8KYnz3FCx1my+8MhKwRCD627lm7e38KZ4ba+rRrJc38s4Im5iJsMl0YYyQaULH4WGnLhKSSD9nK6YoG3kyEpdnOYLmvLCMbKrU6z1f5SmNg1hTFxkgyolYgZRH7x+cNfd77NMsg3SXuHGHacBAJ46ca1am5uV0KSb4wblVsiCVm39OcTyIADMrIBy4ujwciZGkFOJJO4BMXDe8p1zCPuKQVm2Ncey/aR6Ki/ISYhsLUwT8lV94/wWfRvauMjZ4CynBpm9poqCWJvSd3FaTDS8E5OnHozc9EzPDmIfCks+QJUoxjnbOkV+QEO8Ku0XG71JVjRgmuwbFNejjxK/cNk5HcVSrtUmiEQaKLfmyLyi4+KVL37AK0I0cfbc5LqwoiKLKHiMAB0QLmVrxwS2ObolqIqQ5rPeYTbQljoI68YERKVLsXYO6RbeQv26g4D10BLjfFSDF7B++/rRimm412 X-IPAS-Result: A2AYBQDsOchb/wHyM5BjHAEBAQQBAQcEAQGBZYICA4EJXCiMa4s8ixOOHYFaFwEBGBMBiUAhOBYBAwEBAQEBAQIBbCiCNiSCZwIkExQgCwMDCQJACAgDAS0DAQUBCx8LBRgEgn+BdQ0DAZpJPIwGM4U6hGoShxmEIheBQT+IbgESAWyFDQKPAo82CYYfg1aGZwsXiR+HCJYdBgIJBw8hgTkhZHFNIxU7gmyQWG2BBQEBh0iCPgEB Received: from tarius.tycho.ncsc.mil ([144.51.242.1]) by EMSM-GH1-UEA10.NCSC.MIL with ESMTP; 18 Oct 2018 07:50:18 +0000 Received: from prometheus.infosec.tycho.ncsc.mil (prometheus [192.168.25.40]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id w9I7oAsp012467; Thu, 18 Oct 2018 03:50:13 -0400 Received: from tarius.tycho.ncsc.mil (tarius.infosec.tycho.ncsc.mil [144.51.242.1]) by prometheus.infosec.tycho.ncsc.mil (8.15.2/8.15.2) with ESMTP id w9I7o9rp023810 for ; Thu, 18 Oct 2018 03:50:09 -0400 Received: from goalie.tycho.ncsc.mil (goalie.tycho.ncsc.mil [144.51.242.250]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id w9I7o8ZE012464 for ; Thu, 18 Oct 2018 03:50:08 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1BFAAAkOshbly0YGNZjHgEGBwaBUwcLAYIBgWgojGuLPIsTjgmBegsBAYRshQAhNgsNAQMBAQEBAQECFAEBAQEBBhgGhj9SgRUBBQE1gyCBdQ0DAZpJPIwGM4okEocZhCIXgUE/iW6FDQKeOAmGH4NWhmcLF4kfhwiWHQYCCQcPIYEpCoF8TSMVgyeCNI4kbYsNAQE X-IPAS-Result: A1BFAAAkOshbly0YGNZjHgEGBwaBUwcLAYIBgWgojGuLPIsTjgmBegsBAYRshQAhNgsNAQMBAQEBAQECFAEBAQEBBhgGhj9SgRUBBQE1gyCBdQ0DAZpJPIwGM4okEocZhCIXgUE/iW6FDQKeOAmGH4NWhmcLF4kfhwiWHQYCCQcPIYEpCoF8TSMVgyeCNI4kbYsNAQE X-IronPort-AV: E=Sophos;i="5.54,395,1534824000"; d="scan'208";a="395065" Received: from emsm-gh1-uea10.ncsc.mil ([214.29.60.34]) by goalie.tycho.ncsc.mil with ESMTP; 18 Oct 2018 03:50:08 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A2AADsOchbly0YGNZjHgEGBwaBUwcLAYIBgWgojGuLPIsTjgmBegsBAYRshQAhNgsNAQMBAQEBAQECARMBAQEBAQYYBliCNiQBgwxSgRUBBQE1gyCBdQ0DAZpJPIwGM4okEocZhCIXgUE/iW6FDQKeOAmGH4NWhmcLF4kfhwiWHQYCCQcPIYEpCoF8TSMVgyeCNI4kbYsNAQE X-IPAS-Result: A0A2AADsOchbly0YGNZjHgEGBwaBUwcLAYIBgWgojGuLPIsTjgmBegsBAYRshQAhNgsNAQMBAQEBAQECARMBAQEBAQYYBliCNiQBgwxSgRUBBQE1gyCBdQ0DAZpJPIwGM4okEocZhCIXgUE/iW6FDQKeOAmGH4NWhmcLF4kfhwiWHQYCCQcPIYEpCoF8TSMVgyeCNI4kbYsNAQE X-IronPort-AV: E=Sophos;i="5.54,395,1534809600"; d="scan'208";a="16942950" X-IronPort-Outbreak-Status: No, level 0, Unknown - Unknown Received: from ucol3cpa07.eemsg.mail.mil ([214.24.24.45]) by EMSM-GH1-UEA10.NCSC.MIL with ESMTP; 18 Oct 2018 07:50:07 +0000 X-EEMSG-check-005: 0 X-EEMSG-check-006: 000-001;ec72e5ef-3f02-4120-983f-49c7617e6873 Authentication-Results: UCOL3CPA13.eemsg.mail.mil; dkim=none (message not signed) header.i=none; spf=None smtp.pra=omosnace@redhat.com; spf=Pass smtp.mailfrom=omosnace@redhat.com; spf=None smtp.helo=postmaster@mail-wr1-f65.google.com; dmarc=pass (p=none dis=none) d=redhat.com X-EEMSG-check-008: 63263976|UCOL3CPA13_EEMSG_MP28.csd.disa.mil X-EEMSG-SBRS: 2.7 X-EEMSG-ORIG-IP: 209.85.221.65 X-EEMSG-check-002: true X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BRAAAkOshbf0HdVdFjHgEGBwaBUwcLAYQRjGuLPIsTjgmBegsBAROEWYUAGQcBBDILDQEDAQEBAQEBAQEBEwEBCQsLCBsMMYI2JAGDDFKBFQEFATWDIIF1DQSaSTyMBjOKJAkBCIcZhCIXgUE/iW6FDQKeOAmGH4NWhmcLF4kfhwiWHQYCCQcPIYEpCoF8TSMVgyeQWG2LDQEB X-IPAS-Result: A0BRAAAkOshbf0HdVdFjHgEGBwaBUwcLAYQRjGuLPIsTjgmBegsBAROEWYUAGQcBBDILDQEDAQEBAQEBAQEBEwEBCQsLCBsMMYI2JAGDDFKBFQEFATWDIIF1DQSaSTyMBjOKJAkBCIcZhCIXgUE/iW6FDQKeOAmGH4NWhmcLF4kfhwiWHQYCCQcPIYEpCoF8TSMVgyeQWG2LDQEB Received: from mail-wr1-f65.google.com ([209.85.221.65]) by UCOL3CPA13.eemsg.mail.mil with ESMTP/TLS/AES128-SHA; 18 Oct 2018 07:50:04 +0000 Received: by mail-wr1-f65.google.com with SMTP id 61-v6so32486365wrb.6 for ; Thu, 18 Oct 2018 00:50:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=2C2yhGazKsUAhM9g+GUWdl5ZKhy3MYA7DgeN/hULiOY=; b=RODiwYGeAKoPZanHE8UfjS8QrXHaeOxU0SDqofBFMa9ylTiVZpWQG9qLk4Hys+4ZJ+ 71NF5xbxAvruId1dCRGGWSh4VUSa2n3iWpMyoB/3fwmbRULt2p6y3YZpm6t1nFlmr9+5 ytigpKpbZw3H8Do/a9Nqo1mS0YsC55n06ZupQ5TrEKjZAHtACkpmt9BnY2hnMtLJYSO6 br8dLD9VmwgE73nrxRX1q3I6VvaprJ/y5LQNVVKiZdhWSVrd4WAzezVijKOhv+6Kn6im d+rsAhj6mz36GYRo1Ffne2SWpebxWZJ+gYaRYNda1hV1BicdO71bjALrBBNUF2GMnxYo 6Q7Q== X-Gm-Message-State: ABuFfoi2/svQpzIBeXgbhYCZFKEtqBpJ+n8/OP0LYUIhrEQGFU0yrpLn 4uUbjQF9+J4CjVw9Y51lXeZtAA== X-Google-Smtp-Source: ACcGV62/nSjOPvaInMoec+K0y2hcrH9rRaDKEQ1fZl3Zp2tP+Wmyp+wDMdCRGmZtzbI4A63O9xE5vA== X-Received: by 2002:adf:e808:: with SMTP id o8-v6mr26229761wrm.269.1539849001941; Thu, 18 Oct 2018 00:50:01 -0700 (PDT) Received: from localhost.localdomain.com (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id c14-v6sm5625227wmh.44.2018.10.18.00.50.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Oct 2018 00:50:01 -0700 (PDT) X-EEMSG-check-009: 444-444 From: Ondrej Mosnacek To: selinux@vger.kernel.org Date: Thu, 18 Oct 2018 09:49:57 +0200 Message-Id: <20181018074957.24080-1-omosnace@redhat.com> X-Mailer: git-send-email 2.17.2 Subject: [PATCH v2] libsepol: fix endianity in ibpkey range checks X-BeenThere: selinux@tycho.nsa.gov X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: Cc: Stephen Smalley , selinux@tycho.nsa.gov MIME-Version: 1.0 Errors-To: selinux-bounces@tycho.nsa.gov Sender: "Selinux" X-Virus-Scanned: ClamAV using ClamSMTP We need to convert from little-endian before dong range checks on the ibpkey port numbers, otherwise we would be checking a wrong value on big-endian systems. Fixes: 9fbb3112769a ("libsepol: Add ibpkey ocontext handling") Signed-off-by: Ondrej Mosnacek Acked-by: William Roberts william.c.roberts@intel.com --- libsepol/src/policydb.c | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) Changes in v2: - defer assignment to 16-bit struct fields to after the range check diff --git a/libsepol/src/policydb.c b/libsepol/src/policydb.c index a6d76ca3..db6765ba 100644 --- a/libsepol/src/policydb.c +++ b/libsepol/src/policydb.c @@ -2828,21 +2828,32 @@ static int ocontext_read_selinux(struct policydb_compat_info *info, (&c->context[1], p, fp)) return -1; break; - case OCON_IBPKEY: + case OCON_IBPKEY: { + uint32_t pkey_lo, pkey_hi; + rc = next_entry(buf, fp, sizeof(uint32_t) * 4); - if (rc < 0 || buf[2] > 0xffff || buf[3] > 0xffff) + if (rc < 0) + return -1; + + pkey_lo = le32_to_cpu(buf[2]); + pkey_hi = le32_to_cpu(buf[3]); + + if (pkey_lo > UINT16_MAX || pkey_hi > UINT16_MAX) return -1; + c->u.ibpkey.low_pkey = pkey_lo; + c->u.ibpkey.high_pkey = pkey_hi; + + /* we want c->u.ibpkey.subnet_prefix in network + * (big-endian) order, just memcpy it */ memcpy(&c->u.ibpkey.subnet_prefix, buf, sizeof(c->u.ibpkey.subnet_prefix)); - c->u.ibpkey.low_pkey = le32_to_cpu(buf[2]); - c->u.ibpkey.high_pkey = le32_to_cpu(buf[3]); - if (context_read_and_validate (&c->context[0], p, fp)) return -1; break; + } case OCON_IBENDPORT: rc = next_entry(buf, fp, sizeof(uint32_t) * 2); if (rc < 0)