From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.93; helo=mga11.intel.com; envelope-from=jian.j.wang@intel.com; receiver=edk2-devel@lists.01.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2B989211CC3B3 for ; Tue, 26 Feb 2019 08:04:28 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Feb 2019 08:04:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,416,1544515200"; d="scan'208";a="278001611" Received: from shwdeopenpsi777.ccr.corp.intel.com ([10.239.158.28]) by orsmga004.jf.intel.com with ESMTP; 26 Feb 2019 08:04:27 -0800 From: Jian J Wang To: edk2-devel@lists.01.org Date: Wed, 27 Feb 2019 00:04:22 +0800 Message-Id: <20190226160425.4816-1-jian.j.wang@intel.com> X-Mailer: git-send-email 2.17.1.windows.2 Subject: [PATCH 0/3] Ensure FfsFileHeader 8 bytes aligned [CVE-2018-3630] X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2019 16:04:29 -0000 REF: https://bugzilla.tianocore.org/show_bug.cgi?id=864 To follow PI spec, ensure FfsFileHeader 8 bytes aligned. Current code only handles (FwVolHeader->ExtHeaderOffset != 0) path, update code to also handle (FwVolHeader->ExtHeaderOffset == 0) path. Star Zeng (3): MdeModulePkg/PeiCore: Ensure FfsFileHeader 8 bytes aligned MdeModulePkg/DxeCore: Ensure FfsFileHeader 8 bytes aligned IntelFrameworkModulePkg/FwVolDxe: Ensure FfsFileHeader 8 bytes aligned .../Universal/FirmwareVolume/FwVolDxe/FwVol.c | 4 +- MdeModulePkg/Core/Dxe/FwVol/FwVol.c | 65 ++++--------------- MdeModulePkg/Core/Pei/FwVol/FwVol.c | 4 +- 3 files changed, 18 insertions(+), 55 deletions(-) -- 2.17.1.windows.2