Openembedded Core Discussions
 help / color / mirror / Atom feed
* [ROCKO][PATCH 01/34] sqlite3: CVE-2017-15286
@ 2018-08-22 11:17 Jagadeesh Krishnanjanappa
  2018-08-22 11:17 ` [ROCKO][PATCH 02/34] busybox: CVE-2017-16544 Jagadeesh Krishnanjanappa
                   ` (33 more replies)
  0 siblings, 34 replies; 35+ messages in thread
From: Jagadeesh Krishnanjanappa @ 2018-08-22 11:17 UTC (permalink / raw)
  To: openembedded-core

CVE-2017-15286: Make sure the tableColumnList() routine of the command-line
shell does not cause a null-pointer dereference in an error condition.

Affects sqlite3 < 3.21

Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
---
 .../sqlite/files/CVE-2017-15286.patch              | 34 ++++++++++++++++++++++
 meta/recipes-support/sqlite/sqlite3_3.20.0.bb      |  1 +
 2 files changed, 35 insertions(+)
 create mode 100644 meta/recipes-support/sqlite/files/CVE-2017-15286.patch

diff --git a/meta/recipes-support/sqlite/files/CVE-2017-15286.patch b/meta/recipes-support/sqlite/files/CVE-2017-15286.patch
new file mode 100644
index 0000000..954f8d5
--- /dev/null
+++ b/meta/recipes-support/sqlite/files/CVE-2017-15286.patch
@@ -0,0 +1,34 @@
+SQLite 3.20.1 has a NULL pointer dereference in tableColumnList in shell.c 
+because it fails to consider certain cases where 
+`sqlite3_step(pStmt)==SQLITE_ROW` is false and a data structure 
+is never initialized.
+
+This CVE patch applies neatly on sqlite v3.20.0, hence applying
+for sqlite v3.20.0.
+
+Also, removed hunk of "src/shell.c.in" present in upstream 
+commit https://www.sqlite.org/src/info/5d0ceb8dcdef92cd; as v3.20.0
+does not have src/shell.c.in file.
+
+CVE: CVE-2017-15286
+Upstream-Status: Backport from v3.21
+
+Signed-off-by: drh <name@hidden-address>
+Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
+
+Index: src/shell.c
+==================================================================
+--- src/shell.c
++++ src/shell.c
+@@ -3799,10 +3799,11 @@
+         isIPK = 0;
+       }
+     }
+   }
+   sqlite3_finalize(pStmt);
++  if( azCol==0 ) return 0;
+   azCol[0] = 0;
+   azCol[nCol+1] = 0;
+ 
+   /* The decision of whether or not a rowid really needs to be preserved
+   ** is tricky.  We never need to preserve a rowid for a WITHOUT ROWID table
diff --git a/meta/recipes-support/sqlite/sqlite3_3.20.0.bb b/meta/recipes-support/sqlite/sqlite3_3.20.0.bb
index e508258..1b82289 100644
--- a/meta/recipes-support/sqlite/sqlite3_3.20.0.bb
+++ b/meta/recipes-support/sqlite/sqlite3_3.20.0.bb
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://sqlite3.h;endline=11;md5=786d3dc581eff03f4fd9e4a77ed0
 SRC_URI = "\
   http://www.sqlite.org/2017/sqlite-autoconf-${SQLITE_PV}.tar.gz \
   file://sqlite3-fix-CVE-2017-13685.patch \
+  file://CVE-2017-15286.patch \
   "
 SRC_URI[md5sum] = "e262a28b73cc330e7e83520c8ce14e4d"
 SRC_URI[sha256sum] = "3814c6f629ff93968b2b37a70497cfe98b366bf587a2261a56a5f750af6ae6a0"
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 35+ messages in thread

end of thread, other threads:[~2018-08-22 11:41 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-22 11:17 [ROCKO][PATCH 01/34] sqlite3: CVE-2017-15286 Jagadeesh Krishnanjanappa
2018-08-22 11:17 ` [ROCKO][PATCH 02/34] busybox: CVE-2017-16544 Jagadeesh Krishnanjanappa
2018-08-22 11:17 ` [ROCKO][PATCH 03/34] libsndfile1: CVE-2017-14245 CVE-2017-14246 Jagadeesh Krishnanjanappa
2018-08-22 11:17 ` [ROCKO][PATCH 04/34] libvorbis: CVE-2017-14160 Jagadeesh Krishnanjanappa
2018-08-22 11:17 ` [ROCKO][PATCH 05/34] rpm: CVE-2017-7501 Jagadeesh Krishnanjanappa
2018-08-22 11:17 ` [ROCKO][PATCH 06/34] coreutils: CVE-2017-18018 Jagadeesh Krishnanjanappa
2018-08-22 11:17 ` [ROCKO][PATCH 07/34] gdk-pixbuf: CVE-2017-1000422 Jagadeesh Krishnanjanappa
2018-08-22 11:17 ` [ROCKO][PATCH 08/34] util-linux: CVE-2018-7738 Jagadeesh Krishnanjanappa
2018-08-22 11:17 ` [ROCKO][PATCH 09/34] python: CVE-2018-1000030 Jagadeesh Krishnanjanappa
2018-08-22 11:17 ` [ROCKO][PATCH 10/34] perl: CVE-2018-6798 Jagadeesh Krishnanjanappa
2018-08-22 11:17 ` [ROCKO][PATCH 11/34] curl: CVE-2018-1000300 Jagadeesh Krishnanjanappa
2018-08-22 11:17 ` [ROCKO][PATCH 12/34] curl: CVE-2018-1000301 Jagadeesh Krishnanjanappa
2018-08-22 11:17 ` [ROCKO][PATCH 13/34] procps: CVE-2018-1124 Jagadeesh Krishnanjanappa
2018-08-22 11:17 ` [ROCKO][PATCH 14/34] gnupg: CVE-2018-12020 Jagadeesh Krishnanjanappa
2018-08-22 11:17 ` [ROCKO][PATCH 15/34] curl: CVE-2018-0500 Jagadeesh Krishnanjanappa
2018-08-22 11:17 ` [ROCKO][PATCH 16/34] Qemu CVE-2018-11806 slirp-heap-buffer-overflow Jagadeesh Krishnanjanappa
2018-08-22 11:17 ` [ROCKO][PATCH 17/34] qemu: CVE-2017-15119 Jagadeesh Krishnanjanappa
2018-08-22 11:17 ` [ROCKO][PATCH 18/34] pcmanfm: CVE-2017-8934 Jagadeesh Krishnanjanappa
2018-08-22 11:17 ` [ROCKO][PATCH 19/34] openssh: CVE-2017-15906 Jagadeesh Krishnanjanappa
2018-08-22 11:17 ` [ROCKO][PATCH 20/34] git: CVE-2017-15298 Jagadeesh Krishnanjanappa
2018-08-22 11:17 ` [ROCKO][PATCH 21/34] libsndfile1: CVE-2017-14634 Jagadeesh Krishnanjanappa
2018-08-22 11:18 ` [ROCKO][PATCH 22/34] libarchive: CVE-2017-14503 Jagadeesh Krishnanjanappa
2018-08-22 11:18 ` [ROCKO][PATCH 23/34] qemu: CVE-2017-18043 Jagadeesh Krishnanjanappa
2018-08-22 11:18 ` [ROCKO][PATCH 24/34] qemu: CVE-2018-7550 Jagadeesh Krishnanjanappa
2018-08-22 11:18 ` [ROCKO][PATCH 25/34] qemu: CVE-2018-12617 Jagadeesh Krishnanjanappa
2018-08-22 11:18 ` [ROCKO][PATCH 26/34] shadow: CVE-2018-7169 Jagadeesh Krishnanjanappa
2018-08-22 11:18 ` [ROCKO][PATCH 27/34] perl: CVE-2018-6797 Jagadeesh Krishnanjanappa
2018-08-22 11:18 ` [ROCKO][PATCH 28/34] perl: CVE-2018-6913 Jagadeesh Krishnanjanappa
2018-08-22 11:18 ` [ROCKO][PATCH 29/34] wget: CVE-2018-0494 Jagadeesh Krishnanjanappa
2018-08-22 11:18 ` [ROCKO][PATCH 30/34] flac: CVE-2017-6888 Jagadeesh Krishnanjanappa
2018-08-22 11:18 ` [ROCKO][PATCH 31/34] git: CVE-2018-11235 Jagadeesh Krishnanjanappa
2018-08-22 11:18 ` [ROCKO][PATCH 32/34] openssl: CVE-2018-0732 Jagadeesh Krishnanjanappa
2018-08-22 11:18 ` [ROCKO][PATCH 33/34] perl: CVE-2018-12015 Jagadeesh Krishnanjanappa
2018-08-22 11:18 ` [ROCKO][PATCH 34/34] libgcrypt: CVE-2018-0495 Jagadeesh Krishnanjanappa
2018-08-22 11:41 ` ✗ patchtest: failure for "[ROCKO] sqlite3: CVE-2017-1528..." and 33 more Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox