diff -Nru lxcfs-3.0.3/debian/changelog lxcfs-3.0.3/debian/changelog --- lxcfs-3.0.3/debian/changelog 2020-03-31 16:20:51.000000000 +0000 +++ lxcfs-3.0.3/debian/changelog 2022-06-07 16:31:21.000000000 +0000 @@ -1,3 +1,10 @@ +lxcfs (3.0.3-0ubuntu1~18.04.3) bionic; urgency=medium + + * d/p/0002-bindings-prevent-NULL-pointer-dereference.patch: (LP: #1807628) + - bindings: Prevent NULL pointer dereference. + + -- Kellen Renshaw Tue, 07 Jun 2022 16:31:21 +0000 + lxcfs (3.0.3-0ubuntu1~18.04.2) bionic; urgency=medium * d/p/0001-better-handle-swapfree-calculation.patch: (LP: #1860813) diff -Nru lxcfs-3.0.3/debian/patches/0002-bindings-prevent-NULL-pointer-dereference.patch lxcfs-3.0.3/debian/patches/0002-bindings-prevent-NULL-pointer-dereference.patch --- lxcfs-3.0.3/debian/patches/0002-bindings-prevent-NULL-pointer-dereference.patch 1970-01-01 00:00:00.000000000 +0000 +++ lxcfs-3.0.3/debian/patches/0002-bindings-prevent-NULL-pointer-dereference.patch 2022-06-07 16:31:09.000000000 +0000 @@ -0,0 +1,25 @@ +From: Christian Brauner +Date: Wed, 12 Dec 2018 12:49:16 +0100 +Subject: [PATCH] bindings: prevent NULL pointer dereference + +Fixes: https://bugs.launchpad.net/ubuntu/+source/lxcfs/+bug/1807628 +Signed-off-by: Christian Brauner +Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/lxcfs/+bug/1977870 +Origin: upstream, https://github.com/lxc/lxcfs/commit/c0110d9097fde29cb5a8aa71900afffa57bbc9f5 +--- + bindings.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: lxcfs-3.0.3/bindings.c +=================================================================== +--- lxcfs-3.0.3.orig/bindings.c ++++ lxcfs-3.0.3/bindings.c +@@ -1797,7 +1797,7 @@ int cg_readdir(const char *path, void *b + goto out; + } + +- for (i = 0; list[i]; i++) { ++ for (i = 0; list && list[i]; i++) { + if (filler(buf, list[i]->name, NULL, 0) != 0) { + ret = -EIO; + goto out; diff -Nru lxcfs-3.0.3/debian/patches/series lxcfs-3.0.3/debian/patches/series --- lxcfs-3.0.3/debian/patches/series 2020-03-31 16:20:51.000000000 +0000 +++ lxcfs-3.0.3/debian/patches/series 2022-06-07 16:27:50.000000000 +0000 @@ -1 +1,2 @@ 0001-better-handle-swapfree-calculation.patch +0002-bindings-prevent-NULL-pointer-dereference.patch