From 6d640639bdf524d3ddaca1094a7e4e8fcb20323e Mon Sep 17 00:00:00 2001 From: Tad Date: Sun, 4 Jun 2017 22:32:03 -0400 Subject: [PATCH] Fix more kernel CVEs --- .../kernel-cves/asus_msm8916.sh | 29 +++++++ .../kernel-cves/huawei_angler.sh | 80 +++++++++++++++++++ .../kernel-cves/lge_bullhead.sh | 78 ++++++++++++++++++ .../LineageOS-14.1/kernel-cves/moto_shamu.sh | 72 +++++++++++++++++ .../motorola_msm8916.sh} | 0 .../motorola_msm8992.sh} | 0 .../kernel-cves/nextbit_msm8992.sh | 18 +++++ Scripts/LAOS-14.1_Patches.sh | 5 +- 8 files changed, 280 insertions(+), 2 deletions(-) create mode 100644 Patches/LineageOS-14.1/kernel-cves/asus_msm8916.sh create mode 100644 Patches/LineageOS-14.1/kernel-cves/huawei_angler.sh create mode 100644 Patches/LineageOS-14.1/kernel-cves/lge_bullhead.sh create mode 100644 Patches/LineageOS-14.1/kernel-cves/moto_shamu.sh rename Patches/LineageOS-14.1/{android_kernel_motorola_msm8916/cve_fix.sh => kernel-cves/motorola_msm8916.sh} (100%) rename Patches/LineageOS-14.1/{android_kernel_motorola_msm8992/cve_fix.sh => kernel-cves/motorola_msm8992.sh} (100%) create mode 100644 Patches/LineageOS-14.1/kernel-cves/nextbit_msm8992.sh diff --git a/Patches/LineageOS-14.1/kernel-cves/asus_msm8916.sh b/Patches/LineageOS-14.1/kernel-cves/asus_msm8916.sh new file mode 100644 index 00000000..d2c7ec6a --- /dev/null +++ b/Patches/LineageOS-14.1/kernel-cves/asus_msm8916.sh @@ -0,0 +1,29 @@ +#Created using raymanfx's android-cve-checker +kernelPath="/mnt/Drive-1/Development/Other/Android_ROMs/Build/LineageOS-14.1/kernel/asus/msm8916"; +cvePatch="/home/spotcomms/Development/Other/Android_ROMs/Repos/android-cve-checker/patches/3.10/"; +git -C $kernelPath apply --3way $cvePatch"CVE-2014-9903.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-2618.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2014-3181.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-0453.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2014-7975.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-0436.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-7616.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-4486.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-8961.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-0630.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-5343.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-2647.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-2184.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-3813.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-6786.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-7799.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-3893.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-3843.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-8483.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-8391.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-3339.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-10290.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2014-9420.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2014-3601.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2014-4171.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-6353.patch" diff --git a/Patches/LineageOS-14.1/kernel-cves/huawei_angler.sh b/Patches/LineageOS-14.1/kernel-cves/huawei_angler.sh new file mode 100644 index 00000000..5a8bee47 --- /dev/null +++ b/Patches/LineageOS-14.1/kernel-cves/huawei_angler.sh @@ -0,0 +1,80 @@ +#Created using raymanfx's android-cve-checker +kernelPath="/mnt/Drive-1/Development/Other/Android_ROMs/Build/LineageOS-14.1/kernel/huawei/angler"; +cvePatch="/home/spotcomms/Development/Other/Android_ROMs/Repos/android-cve-checker/patches/3.10/"; +git -C $kernelPath apply --3way $cvePatch"CVE-2015-2041.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2014-8160.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2014-8173.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-10088.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-0516.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-5697.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-6348.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2013-4312.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-3894.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-8245.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-8399.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-2618.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-8019.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-6345.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-5829.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-7550.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-2549.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-7616.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-4177.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-7889.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-7472.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-7042.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-5972.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-2545.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-5967.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-7187.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-5858.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-8961.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-8890.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-5859.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-5343.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-2647.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-7308.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-3935.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-10153.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-5867.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-5868.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-2636.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-3813.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-6074.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-0774.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-2847.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-5986.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-2384.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-7799.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-5342.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-3893.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-0465.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-7184.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-6001.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-8418.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-8406.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-8403.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-2504.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-10208.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-0537.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-8391.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-8966.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-5346.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-4170.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-3339.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-1583.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-5669.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-9604.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-8962.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-3070.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-10290.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-6346.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2014-3601.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-8785.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-7515.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-6951.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-2544.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-8215.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-5345.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-9576.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-6214.patch" diff --git a/Patches/LineageOS-14.1/kernel-cves/lge_bullhead.sh b/Patches/LineageOS-14.1/kernel-cves/lge_bullhead.sh new file mode 100644 index 00000000..2c37679f --- /dev/null +++ b/Patches/LineageOS-14.1/kernel-cves/lge_bullhead.sh @@ -0,0 +1,78 @@ +#Created using raymanfx's android-cve-checker +kernelPath="/mnt/Drive-1/Development/Other/Android_ROMs/Build/LineageOS-14.1/kernel/lge/bullhead"; +cvePatch="/home/spotcomms/Development/Other/Android_ROMs/Repos/android-cve-checker/patches/3.10/"; +git -C $kernelPath apply --3way $cvePatch"CVE-2015-2041.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2014-8160.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2014-8173.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-10088.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-0516.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-5697.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-6348.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2013-4312.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-3894.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-8245.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-8399.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-2618.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-8019.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-6345.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-5829.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-7550.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-2549.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-7616.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-4177.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-7889.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-7472.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-7042.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-5972.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-2545.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-5967.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-7187.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-5858.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-8961.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-8890.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-5859.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-5343.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-2647.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-7308.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-3935.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-10153.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-5867.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-2636.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-3813.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-6074.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-0774.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-2847.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-5986.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-2384.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-7799.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-5342.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-0465.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-7184.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-6001.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-8418.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-8406.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-8403.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-2504.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-10208.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-0537.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-8391.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-8966.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-5346.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-4170.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-3339.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-1583.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-5669.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-9604.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-8962.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-3070.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-10290.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-6346.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2014-3601.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-8785.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-7515.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-6951.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-2544.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-8215.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-5345.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-9576.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-6214.patch" diff --git a/Patches/LineageOS-14.1/kernel-cves/moto_shamu.sh b/Patches/LineageOS-14.1/kernel-cves/moto_shamu.sh new file mode 100644 index 00000000..664037d1 --- /dev/null +++ b/Patches/LineageOS-14.1/kernel-cves/moto_shamu.sh @@ -0,0 +1,72 @@ +#Created using raymanfx's android-cve-checker +kernelPath="/mnt/Drive-1/Development/Other/Android_ROMs/Build/LineageOS-14.1/kernel/moto/shamu"; +cvePatch="/home/spotcomms/Development/Other/Android_ROMs/Repos/android-cve-checker/patches/3.10/"; +git -C $kernelPath apply --3way $cvePatch"CVE-2015-2041.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2014-8160.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2014-9683.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2014-8173.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-10088.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-5697.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-6348.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2013-4312.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-0404.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-3894.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-8399.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-2618.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-8019.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-8967.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2014-3181.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-6345.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2014-7975.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-5829.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-7550.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-2549.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-7616.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-4177.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-7889.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-7472.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-7042.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-5972.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-2545.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-7187.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-8961.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-8890.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-6738.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-2647.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-7308.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-10153.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-2636.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-6074.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-0774.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-2847.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-5986.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-2384.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-7799.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-5342.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2014-7826.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-8418.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-8403.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-8650.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-10208.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-0537.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-8391.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-8966.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-5346.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-4170.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-1583.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-5669.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-9604.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-8962.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-3070.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2014-9420.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-6346.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2014-3601.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2014-4171.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-8785.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-7515.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-6951.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-2544.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-8215.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-1420.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-9576.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-6214.patch" diff --git a/Patches/LineageOS-14.1/android_kernel_motorola_msm8916/cve_fix.sh b/Patches/LineageOS-14.1/kernel-cves/motorola_msm8916.sh similarity index 100% rename from Patches/LineageOS-14.1/android_kernel_motorola_msm8916/cve_fix.sh rename to Patches/LineageOS-14.1/kernel-cves/motorola_msm8916.sh diff --git a/Patches/LineageOS-14.1/android_kernel_motorola_msm8992/cve_fix.sh b/Patches/LineageOS-14.1/kernel-cves/motorola_msm8992.sh similarity index 100% rename from Patches/LineageOS-14.1/android_kernel_motorola_msm8992/cve_fix.sh rename to Patches/LineageOS-14.1/kernel-cves/motorola_msm8992.sh diff --git a/Patches/LineageOS-14.1/kernel-cves/nextbit_msm8992.sh b/Patches/LineageOS-14.1/kernel-cves/nextbit_msm8992.sh new file mode 100644 index 00000000..e0f8a653 --- /dev/null +++ b/Patches/LineageOS-14.1/kernel-cves/nextbit_msm8992.sh @@ -0,0 +1,18 @@ +#Created using raymanfx's android-cve-checker +kernelPath="/mnt/Drive-1/Development/Other/Android_ROMs/Build/LineageOS-14.1/kernel/nextbit/msm8992"; +cvePatch="/home/spotcomms/Development/Other/Android_ROMs/Repos/android-cve-checker/patches/3.10/"; +git -C $kernelPath apply --3way $cvePatch"CVE-2014-3601.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2014-9903.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2014-9922.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-8019.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2015-8961.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-10153.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-10290.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-3843.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-6791.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-7097.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2016-9576.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-2618.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-2647.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-7308.patch" +git -C $kernelPath apply --3way $cvePatch"CVE-2017-8890.patch" diff --git a/Scripts/LAOS-14.1_Patches.sh b/Scripts/LAOS-14.1_Patches.sh index 36c26a78..649f4bef 100755 --- a/Scripts/LAOS-14.1_Patches.sh +++ b/Scripts/LAOS-14.1_Patches.sh @@ -157,7 +157,7 @@ enableDexPreOpt enter "kernel/motorola/msm8992" patch -p1 < $patches"android_kernel_common_msm8992/0001-OverUnderClock.patch" #a57: 1.82Ghz -> 2.01Ghz, a53 1.44Ghz -> 1.63Ghz, 384Mhz -> 300Mhz =+1.14Ghz TODO: Enable by default patch -p1 < $patches"android_kernel_common_msm8992/0002-MMC_Tweak.patch" #Improves MMC performance -source $patches"android_kernel_motorola_msm8992/cve_fix.sh" +source $patches"kernel-cves/motorola_msm8992.sh" enter "device/oneplus/bacon" enableDexPreOpt @@ -184,11 +184,12 @@ patch -p1 < $patches"android_kernel_common_msm8992/0002-MMC_Tweak.patch" #Improv enter "kernel/motorola/msm8916" patch -p1 < $patches"android_kernel_motorola_msm8916/0001-Overclock.patch" #1.36Ghz -> 1.88Ghz =+ 2.07Ghz -source $patches"android_kernel_motorola_msm8916/cve_fix.sh" +source $patches"kernel-cves/motorola_msm8916.sh" enter "kernel/nextbit/msm8992" patch -p1 < $patches"android_kernel_common_msm8992/0001-OverUnderClock.patch" #a57: 1.82Ghz -> 2.01Ghz, a53 1.44Ghz -> 1.63Ghz, 384Mhz -> 300Mhz =+1.14Ghz TODO: Enable by default patch -p1 < $patches"android_kernel_common_msm8992/0002-MMC_Tweak.patch" #Improves MMC performance +source $patches"kernel-cves/nextbit_ether.sh" # #END OF DEVICE CHANGES #