]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
3 years agolibxml2: fix CVE-2022-23308 regression
Ralph Siemsen [Fri, 25 Mar 2022 15:36:43 +0000 (11:36 -0400)] 
libxml2: fix CVE-2022-23308 regression

The fix for the CVE in 2.9.13 caused a regression which
was addressed after 2.9.13.  We import that patch here.

Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoghostscript: backport patch fix for CVE-2021-3781
Davide Gardenal [Fri, 25 Mar 2022 16:46:30 +0000 (17:46 +0100)] 
ghostscript: backport patch fix for CVE-2021-3781

Upstream advisory:
https://ghostscript.com/blog/CVE-2021-3781.html

Other than the CVE fix other two commits are backported
to fit the patch.

Signed-off-by: Davide Gardenal <davide.gardenal@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoghostscript: fix CVE-2020-15900 and CVE-2021-45949 for -native
Steve Sakoman [Fri, 25 Mar 2022 17:11:50 +0000 (07:11 -1000)] 
ghostscript: fix CVE-2020-15900 and CVE-2021-45949 for -native

CVE patches (and the stack limits check patch) should have been
added to SRC_URI_BASE so that they are applied for both target
and -native packages.

Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoapt: backport patch fix for CVE-2020-3810
Davide Gardenal [Thu, 24 Mar 2022 15:09:11 +0000 (16:09 +0100)] 
apt: backport patch fix for CVE-2020-3810

Upstream commit:
https://salsa.debian.org/apt-team/apt/-/blob/dceb1e49e4b8e4dadaf056be34088b415939cda6/apt-pkg/contrib/arfile.cc

CVE: CVE-2020-3810

Signed-off-by: Davide Gardenal <davide.gardenal@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoqemu: backport patch fix for CVE-2020-13791
Davide Gardenal [Thu, 24 Mar 2022 11:31:25 +0000 (12:31 +0100)] 
qemu: backport patch fix for CVE-2020-13791

Upstream patch:
https://lists.gnu.org/archive/html/qemu-devel/2020-06/msg00979.html

CVE: CVE-2020-13791

Signed-off-by: Davide Gardenal <davide.gardenal@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agopython3: ignore CVE-2022-26488
Ross Burton [Tue, 22 Mar 2022 11:19:48 +0000 (11:19 +0000)] 
python3: ignore CVE-2022-26488

This CVE is specific to Microsoft Windows, so we can ignore it.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 2bd3c5a93988140d9927340b3af68785ae03db65)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agolibsolv: fix CVE: CVE-2021-44568-71 and CVE-2021-44573-77
Steve Sakoman [Tue, 22 Mar 2022 17:49:46 +0000 (07:49 -1000)] 
libsolv: fix CVE: CVE-2021-44568-71 and CVE-2021-44573-77

The existing patch for CVE-2021-3200 also fixes CVE-2021-44568 through
CVE-2021-44671 and CVE-2021-44573 through CVE-2021-44677, so update
CVE tags in patch to reflect this.

Reference:

https://github.com/openSUSE/libsolv/issues/426

Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agooeqa/selftest/tinfoil: Improve tinfoil event test debugging
Richard Purdie [Thu, 17 Mar 2022 21:05:15 +0000 (21:05 +0000)] 
oeqa/selftest/tinfoil: Improve tinfoil event test debugging

We still see occasional test failures for unknown reasons. Add some debugging to
show whether the matching files event was received even if the command complete wasn't.

Also ensure any commandfailed/commandexit event is shown.

This will hopefully aid debugging the next time the issue occurs.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2f7a788bb51ef09ee23c94176285437ea760fab7)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agooeqa/runtime/ping: Improve failure message to include more detail
Richard Purdie [Sat, 12 Mar 2022 13:44:03 +0000 (13:44 +0000)] 
oeqa/runtime/ping: Improve failure message to include more detail

When the ping test fails due to a timeout we only get limited debug
information. Tweak the code to improve that in case it sheds any light
on intermittent failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d81704057950e1970ef7f673fa771834fd2b3f1e)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agopython3targetconfig: Use for nativesdk too
Richard Purdie [Wed, 23 Feb 2022 15:50:40 +0000 (15:50 +0000)] 
python3targetconfig: Use for nativesdk too

nativesdk is a cross compiled target and therefore should use the target
config, not the native one. Copy the target entries accordingly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b1b5fec350b390fa7f2d26966df1411b032faf87)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agomobile-broadband-provider-info: upgrade 20210805 -> 20220315
Changhyeok Bae [Tue, 15 Mar 2022 23:16:08 +0000 (23:16 +0000)] 
mobile-broadband-provider-info: upgrade 20210805 -> 20220315

Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ed02ee8f20094f598448d58875cb7be8a24a019f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agomobile-broadband-provider-info: upgrade 20201225 -> 20210805
Alexander Kanavin [Sun, 22 Aug 2021 12:50:26 +0000 (14:50 +0200)] 
mobile-broadband-provider-info: upgrade 20201225 -> 20210805

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 93a335993ce592a8ee34fc9a490e327f2775e03f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agolinux-firmware: upgrade 20220209 -> 20220310
wangmy [Tue, 15 Mar 2022 12:12:28 +0000 (20:12 +0800)] 
linux-firmware: upgrade 20220209 -> 20220310

License-Update:
 year updated to 2022
 Version of some driver files updated
 Added files for some drivers

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit be1b1d204c89035c54a626db46c5054e553b82c2)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agopython3: upgrade 3.8.12 -> 3.8.13
Tim Orling [Sun, 20 Mar 2022 20:36:28 +0000 (13:36 -0700)] 
python3: upgrade 3.8.12 -> 3.8.13

Security and bug fixes (including upgrades for security and bug fixes to
bundled components).

For changes see:
https://docs.python.org/release/3.8.13/whatsnew/changelog.html#python-3-8-13-final

CVE: CVE-2022-26488

License-Update: Add 2022 to copyright years

* Update bpo-36852 patch to apply after change in 3.8.13

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoopenssl: upgrade 1.1.1l -> 1.1.1n
Ovidiu Panait [Sun, 20 Mar 2022 09:25:36 +0000 (11:25 +0200)] 
openssl: upgrade 1.1.1l -> 1.1.1n

Upgrade openssl 1.1.1l -> 1.1.1n to fix CVE-2022-0778:
https://nvd.nist.gov/vuln/detail/CVE-2022-0778
https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=3118eb64934499d93db3230748a452351d1d9a65

This also fixes an evp_extra_test ptest failure introduced by openssl-1.1.1m:
"""
not ok 19 - test_signatures_with_engine
ERROR: (ptr) 'e = ENGINE_by_id(engine_id) != NULL' failed @ ../openssl-1.1.1m/test/evp_extra_test.c:1890
0x0
not ok 20 - test_cipher_with_engine
<snip>
"""

The ptest change is already present in Yocto master since oe-core
commit 5cd40648b0ba ("openssl: upgrade to 3.0.1").

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agobluez5: fix CVE-2021-3658
Minjae Kim [Sat, 19 Mar 2022 22:40:52 +0000 (23:40 +0100)] 
bluez5: fix CVE-2021-3658

adapter incorrectly restores Discoverable state after powered down

Upstream-Status: Backport [https://github.com/bluez/bluez/commit/b497b5942a8beb8f89ca1c359c54ad67ec843055]
CVE: CVE-2021-3658
Signed-off-by:Minjae Kim <flowergom@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoqemu: backport fix for CVE-2020-13253
Davide Gardenal [Fri, 18 Mar 2022 08:47:57 +0000 (09:47 +0100)] 
qemu: backport fix for CVE-2020-13253

Backport commits from the following MR:
https://git.qemu.org/?p=qemu.git;a=commit;h=3a9163af4e3dd61795a35d47b702e302f98f81d6

Two other commits have been backported in order to be able
to correctly apply the patches.

CVE: CVE-2020-13253

Signed-off-by: Davide Gardenal <davide.gardenal@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agore2c: backport fix for CVE-2018-21232
Davide Gardenal [Mon, 14 Mar 2022 15:21:13 +0000 (16:21 +0100)] 
re2c: backport fix for CVE-2018-21232

Backport commits from the following issue:
https://github.com/skvadrik/re2c/issues/219

CVE: CVE-2018-21232

Signed-off-by: Davide Gardenal <davide.gardenal@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agolibxml2: move to gitlab.gnome.org
Ralph Siemsen [Fri, 11 Mar 2022 16:58:54 +0000 (11:58 -0500)] 
libxml2: move to gitlab.gnome.org

The project has migrated from www.xmlsoft.org to gitlab.gnome.org.
Update the homepage accordingly, and use gnomebase to construct the
download URL, rather than including it in SRC_URI explicitly.

Note that the download is now in .xz format rather than .gz, so the
sha256sum is updated accordingly. Post-decompression tarballs are
identical, so there is no change to the libxml2 code.

Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8bc17ceb997f8f31a03e5f5efc41c03ef1df3add)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agolibxml2: backport fix for CVE-2022-23308
Ralph Siemsen [Fri, 11 Mar 2022 20:37:58 +0000 (15:37 -0500)] 
libxml2: backport fix for CVE-2022-23308

Use-after-free of ID and IDREF attributes, which could result in denial
of service.

https://nvd.nist.gov/vuln/detail/CVE-2022-23308
CVE: CVE-2022-23308

Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agobuild-appliance-image: Update to dunfell head revision
Richard Purdie [Mon, 14 Mar 2022 14:45:29 +0000 (14:45 +0000)] 
build-appliance-image: Update to dunfell head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobind: update to 9.11.36
Ralph Siemsen [Thu, 10 Mar 2022 18:32:34 +0000 (13:32 -0500)] 
bind: update to 9.11.36

Security Fixes

The lame-ttl option controls how long named caches certain types of
broken responses from authoritative servers (see the security advisory
for details). This caching mechanism could be abused by an attacker to
significantly degrade resolver performance. The vulnerability has been
mitigated by changing the default value of lame-ttl to 0 and overriding
any explicitly set value with 0, effectively disabling this mechanism
altogether. ISC's testing has determined that doing that has a
negligible impact on resolver performance while also preventing abuse.
Administrators may observe more traffic towards servers issuing certain
types of broken responses than in previous BIND 9 releases, depending on
client query patterns. (CVE-2021-25219)

ISC would like to thank Kishore Kumar Kothapalli of Infoblox for
bringing this vulnerability to our attention. [GL #2899]

Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoperf-tests: add bash into RDEPENDS (v5.12-rc5+)
Bruce Ashfield [Wed, 9 Mar 2022 21:28:25 +0000 (22:28 +0100)] 
perf-tests: add bash into RDEPENDS (v5.12-rc5+)

Upstream commit:

   commit 1dc481c0b0cf18d3952d93a73c4ece90dec277f0
   Author: Leo Yan <leo.yan@linaro.org>
   Date:   Sat Mar 20 18:45:54 2021 +0800

       perf test: Change to use bash for daemon test

       When executing the daemon test on Arm64 and x86 with Debian (Buster)
       distro, both skip the test case with the log:

Changes tools/perf/tests/shell/daemon.sh to be explicitly bash
(it was already required, but was just skipped on various
distros).

We add it into our RDEPENDS for perf-tests to fixup 5.12+
builds.

We already have relatively heavy RDEPENDS for perf tests (python3), so
adding bash into the RDEPENDS isn't signifcant even for older perf
builds that use the same recipe.

(cherry picked from commit 159cdb159ad0e9d3ed73cfc07f9acd5c0b608e7b)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agotiff: Add backports for two CVEs from upstream
sana kazi [Wed, 9 Mar 2022 11:59:32 +0000 (17:29 +0530)] 
tiff: Add backports for two CVEs from upstream

Based on commit from master

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6ae14b4ff7a655b48c6d99ac565d12bf8825414f)
Signed-off-by: Sana Kazi <Sana.Kazi@kpit.com>
Signed-off-by: Sana Kazi <sanakazisk19@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agovim: Update to 8.2.4524 for further CVE fixes
Richard Purdie [Mon, 7 Mar 2022 17:00:18 +0000 (17:00 +0000)] 
vim: Update to 8.2.4524 for further CVE fixes

Includes CVE-2022-0696, CVE-2022-0714, CVE-2022-0729.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0d29988958e48534a0076307bb2393a3c1309e03)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agosstate: inside the threadedpool don't write to the shared localdata
Jose Quaresma [Sun, 6 Mar 2022 21:08:23 +0000 (21:08 +0000)] 
sstate: inside the threadedpool don't write to the shared localdata

When inside the threadedpool we make a copy of the localdata
to avoid some race condition, so we need to use this new
localdata2 and stop write the shared localdata.

Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 90fe6948a9df0b43c58120a9358adb3da1ceb5b9)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agosystemd: Ensure uid/gid ranges are set deterministically
Richard Purdie [Sat, 19 Dec 2020 11:20:31 +0000 (11:20 +0000)] 
systemd: Ensure uid/gid ranges are set deterministically

meson.build will fall back to greping /etc/login.defs for values of these
if they're not set. Different distros set them (Centos 7/8 does, Ubuntu
does not) so output was not deterministic. Avoid this by setting to the
default values. We now match the vaules from login.defs from shadow.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 77a6ac0ac266d71e4fe67fd332662081f30cd7bf)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoasciidoc: update git repository
Ross Burton [Fri, 4 Mar 2022 17:14:06 +0000 (17:14 +0000)] 
asciidoc: update git repository

The asciidoc-py3 repository has been renamed to asciidoc-py.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agouninative: Upgrade to 3.5
Michael Halstead [Fri, 11 Feb 2022 18:10:45 +0000 (10:10 -0800)] 
uninative: Upgrade to 3.5

Add support for glibc 2.35.

Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 347b8c87fb4e2c398644f900728cf6e22ba4516d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agouninative: Add version to uninative tarball name
Richard Purdie [Fri, 12 Nov 2021 13:51:09 +0000 (13:51 +0000)] 
uninative: Add version to uninative tarball name

uninative works via hashes and doesn't need the version in the tarball name but
it does make things easier to inspect in DL_DIR. There were reasons such as
ease of publication of the build tarballs but we can handle those differently
now and the signature issues from the early code aren't an issue now. From 3.4
onwards we can use a version'd name.

[YOCTO #12970]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit dadba70d6a24d8ebb5576598efffa973151c7218)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agobuildhistory.bbclass: create the buildhistory directory when needed
Jose Quaresma [Wed, 2 Mar 2022 00:45:27 +0000 (00:45 +0000)] 
buildhistory.bbclass: create the buildhistory directory when needed

When the BUILDHISTORY_RESET is enabled we need to move the
content from BUILDHISTORY_DIR to BUILDHISTORY_OLD_DIR but
when we start a clean build in the first run we don't have the
BUILDHISTORY_DIR so the move of files will fail.

| ERROR: Command execution failed: Traceback (most recent call last):
|  File "/xxx/poky/bitbake/lib/bb/command.py", line 110, in runAsyncCommand
|    commandmethod(self.cmds_async, self, options)
|  File "/xxx/poky/bitbake/lib/bb/command.py", line 564, in buildTargets
|    command.cooker.buildTargets(pkgs_to_build, task)
|  File "/xxx/poky/bitbake/lib/bb/cooker.py", line 1481, in buildTargets
|    bb.event.fire(bb.event.BuildStarted(buildname, ntargets), self.databuilder.mcdata[mc])
|  File "/xxx/home/builder/src/base/poky/bitbake/lib/bb/event.py", line 214, in fire
|    fire_class_handlers(event, d)
|  File "/xxx/poky/bitbake/lib/bb/event.py", line 121, in fire_class_handlers
|    execute_handler(name, handler, event, d)
|  File "/xxx/poky/bitbake/lib/bb/event.py", line 93, in execute_handler
|    ret = handler(event)
|  File "/xxx/poky/meta/classes/buildhistory.bbclass", line 919, in buildhistory_eventhandler
|    entries = [ x for x in os.listdir(rootdir) if not x.startswith('.') ]
| FileNotFoundError: [Errno 2] No such file or directory: '/xxx/buildhistory'

Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 97bc2168da7dbacdfbf79cd70db674363ab84f6b)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agolibxml-parser-perl: Add missing RDEPENDS
Richard Purdie [Sun, 20 Feb 2022 14:05:36 +0000 (14:05 +0000)] 
libxml-parser-perl: Add missing RDEPENDS

Running the ptest package in an image alone highlighted missing module
dependencies. Add them to fix those errors.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3859f49db2d694c7b63fdbe25be0018afba5c738)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agocml1.bbclass: Handle ncurses-native being available via pkg-config
Nathan Rossi [Tue, 1 Mar 2022 23:55:32 +0000 (00:55 +0100)] 
cml1.bbclass: Handle ncurses-native being available via pkg-config

The linux kernel will by default use pkg-config to get ncurses(w) paths,
falling back to absolute path checks otherwise. If the build host does
not have ncurses installed this will fail as pkg-config will not search
the native sysroot for ncurses.

To more all kernel/kconfig sources, inject the equivalent native
pkg-config variables similar to what is done by the pkg-config-native
script. This only affects the menuconfig python task itself and the
oe_terminal call inside it.

(cherry picked from commit abb95c421bb67d452691819e3f63dabd02e2ba37)
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agobootchart2: Add missing python3-math dependency
Marek Vasut [Tue, 1 Mar 2022 23:55:00 +0000 (00:55 +0100)] 
bootchart2: Add missing python3-math dependency

Without this dependency, generating the bootchart may fail with:
"
ModuleNotFoundError: No module named 'random'
"

(cherry picked from commit 487e9f16a00f895159b79f1865fe8b626b47ddc2)
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Mingli Yu <mingli.yu@windriver.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agowireless-regdb: upgrade 2021.08.28 -> 2022.02.18
wangmy [Wed, 23 Feb 2022 13:41:54 +0000 (21:41 +0800)] 
wireless-regdb: upgrade 2021.08.28 -> 2022.02.18

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e5c06ddfd3c0db0d0762c0241c019f59ad310e53)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoRevert "cve-check: add lockfile to task"
Ross Burton [Wed, 23 Feb 2022 12:54:32 +0000 (12:54 +0000)] 
Revert "cve-check: add lockfile to task"

Now that all of the functions in cve-check open the database read-only,
we can remove this lockfile.

This means cve-check can run in parallal again, improving runtimes
massively.

This reverts commit d55fbf4779483d2cfd71df78d0f733b599fef739.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e60d149b41d14d177df20dbecaef943696df1586)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agocve-check: get_cve_info should open the database read-only
Ross Burton [Wed, 23 Feb 2022 12:54:31 +0000 (12:54 +0000)] 
cve-check: get_cve_info should open the database read-only

All of the function in cve-check should open the database read-only, as
the only writer is the fetch task in cve-update-db.  However,
get_cve_info() was failing to do this, which might be causing locking
issues with sqlite.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8de517238f1f418d9af1ce312d99de04ce2e26fc)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agocoreutils: remove obsolete ignored CVE list
Ross Burton [Wed, 23 Feb 2022 13:07:50 +0000 (13:07 +0000)] 
coreutils: remove obsolete ignored CVE list

Three CVEs were meant to be ignored via CVE_WHITELIST, but that wasn't
the correct variable name.

The CPEs for those CVEs mean that they don't get picked up in our report,
so just remove the assignment.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit dea00faf30ec7c19b6b5ed4651b430ba3faf69ff)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoexpat: fix CVE-2022-25315
Steve Sakoman [Mon, 28 Feb 2022 15:59:40 +0000 (05:59 -1000)] 
expat: fix CVE-2022-25315

In Expat (aka libexpat) before 2.4.5, there is an integer overflow
in storeRawNames.

Backport patch from:
https://github.com/libexpat/libexpat/pull/559/commits/eb0362808b4f9f1e2345a0cf203b8cc196d776d9

CVE: CVE-2022-25315

Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoexpat: fix CVE-2022-25314
Steve Sakoman [Mon, 28 Feb 2022 15:52:10 +0000 (05:52 -1000)] 
expat: fix CVE-2022-25314

In Expat (aka libexpat) before 2.4.5, there is an integer overflow in
copyString.

Backport patch from:
https://github.com/libexpat/libexpat/pull/560/commits/efcb347440ade24b9f1054671e6bd05e60b4cafd

CVE: CVE-2022-25314

Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoexpat: fix CVE-2022-25313
Steve Sakoman [Mon, 28 Feb 2022 15:43:58 +0000 (05:43 -1000)] 
expat: fix CVE-2022-25313

In Expat (aka libexpat) before 2.4.5, an attacker can trigger stack
exhaustion in build_model via a large nesting depth in the DTD element.

Backport patch from:
https://github.com/libexpat/libexpat/pull/558/commits/9b4ce651b26557f16103c3a366c91934ecd439ab

Also add patch which fixes a regression introduced in the above fix:
https://github.com/libexpat/libexpat/pull/566

CVE: CVE-2022-25313

Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoexpat: fix CVE-2022-25236
Steve Sakoman [Mon, 28 Feb 2022 15:31:13 +0000 (05:31 -1000)] 
expat: fix CVE-2022-25236

xmlparse.c in Expat (aka libexpat) before 2.4.5 allows
attackers to insert namespace-separator characters into
namespace URIs.

Backport patches from:
https://github.com/libexpat/libexpat/pull/561/commits

CVE: CVE-2022-25236

Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoexpat: fix CVE-2022-25235
Steve Sakoman [Mon, 28 Feb 2022 15:15:13 +0000 (05:15 -1000)] 
expat: fix CVE-2022-25235

xmltok_impl.c in Expat (aka libexpat) before 2.4.5 lacks certain
validation of encoding, such as checks for whether a UTF-8 character
is valid in a certain context.

Backport patches from:
https://github.com/libexpat/libexpat/pull/562/commits

CVE: CVE-2022-25235

Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogo: fix CVE-2022-23772
Minjae Kim [Sat, 26 Feb 2022 20:55:35 +0000 (20:55 +0000)] 
go: fix CVE-2022-23772

math/big: prevent large memory consumption in Rat.SetString

An attacker can cause unbounded memory growth in a program using (*Rat).SetString
due to an unhandled overflow.

Upstream-Status: Backport [https://go.dev/issue/50699]
CVE: CVE-2022-23772
Signed-off-by:Minjae Kim <flowergom@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogo: fix CVE-2022-23806
Minjae Kim [Sat, 26 Feb 2022 20:55:34 +0000 (20:55 +0000)] 
go: fix CVE-2022-23806

crypto/elliptic: fix IsOnCurve for big.Int values that are not valid coordinates

Some big.Int values that are not valid field elements (negative or overflowing)
might cause Curve.IsOnCurve to incorrectly return true. Operating on those values
may cause a panic or an invalid curve operation. Note that Unmarshal will never
return such values.

Upstream-Status: Backport [https://go.dev/issue/50974]
CVE: CVE-2022-23806
Signed-off-by:Minjae Kim <flowergom@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agolibarchive: Fix for CVE-2021-36976
Virendra Thakur [Thu, 24 Feb 2022 15:11:59 +0000 (20:41 +0530)] 
libarchive: Fix for CVE-2021-36976

Add patch to fix CVE-2021-36976

CVE-2021-36976 fix are provided by below mentioned pull request.
1) https://github.com/libarchive/libarchive/pull/1491
2) https://github.com/libarchive/libarchive/pull/1492
3) https://github.com/libarchive/libarchive/pull/1493

Signed-off-by: Virendra Thakur <virendra.thakur@kpit.com>
Signed-off-by: virendra thakur <thakur.virendra1810@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add a fix for a crash in scripts
Marta Rybczynska [Fri, 18 Feb 2022 10:05:54 +0000 (11:05 +0100)] 
grub: add a fix for a crash in scripts

This patch adds a fix for a crash in grub's script handling. It is
a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: avoid a NULL pointer dereference
Marta Rybczynska [Fri, 18 Feb 2022 10:05:53 +0000 (11:05 +0100)] 
grub: avoid a NULL pointer dereference

This patch adds a fix for a NULL pointer dereference in grub's
commands/ls. It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add a fix for a NULL pointer dereference
Marta Rybczynska [Fri, 18 Feb 2022 10:05:52 +0000 (11:05 +0100)] 
grub: add a fix for a NULL pointer dereference

This patch adds a fix for a NULL pointer dereference in grub's
script/execute. It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: fix incorrect use of a negative value
Marta Rybczynska [Fri, 18 Feb 2022 10:05:51 +0000 (11:05 +0100)] 
grub: fix incorrect use of a negative value

This patch adds a fix for an incorrect use of a negative value in grub's
util/glue-efi. It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add a fix for an incorrect cast
Marta Rybczynska [Fri, 18 Feb 2022 10:05:50 +0000 (11:05 +0100)] 
grub: add a fix for an incorrect cast

This patch adds a fix for incorrect casting from signed to unsigned
in grub's util/grub-editenv. It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add a fix for NULL pointer dereference
Marta Rybczynska [Fri, 18 Feb 2022 10:05:49 +0000 (11:05 +0100)] 
grub: add a fix for NULL pointer dereference

This patch adds a fix for a NULL pointer dereference in grub's
util/grub-install. It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add a check for a NULL pointer
Marta Rybczynska [Fri, 18 Feb 2022 10:05:48 +0000 (11:05 +0100)] 
grub: add a check for a NULL pointer

This patch adds a check for a NULL pointer before use in grub's
loader/xnu. It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: avoid a memory leak
Marta Rybczynska [Fri, 18 Feb 2022 10:05:47 +0000 (11:05 +0100)] 
grub: avoid a memory leak

This patch fixes a memory leak in grub's loader/xnu when an error is
detected in grub_xnu_writetree_toheap(). It is a part of a security
series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add a fix for a memory leak
Marta Rybczynska [Fri, 18 Feb 2022 10:05:46 +0000 (11:05 +0100)] 
grub: add a fix for a memory leak

This patch adds a fix for a memory leak in grub's loader/xnu.
It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: fix checking for NULL
Marta Rybczynska [Fri, 18 Feb 2022 10:05:45 +0000 (11:05 +0100)] 
grub: fix checking for NULL

This patch adds a fix for checking for NULL in grub's loader/bsd.
It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: remove dead code
Marta Rybczynska [Fri, 18 Feb 2022 10:05:44 +0000 (11:05 +0100)] 
grub: remove dead code

This patch removes dead code from grub's gfxmenu/gui_list. It is
a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: test for malformed jpeg files
Marta Rybczynska [Fri, 18 Feb 2022 10:05:43 +0000 (11:05 +0100)] 
grub: test for malformed jpeg files

This patch adds a fix for handling malformed JPEG files in grub's
video/readers/jpeg. It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: fix a possible integer overflow
Marta Rybczynska [Fri, 18 Feb 2022 10:05:42 +0000 (11:05 +0100)] 
grub: fix a possible integer overflow

This patch adds a fix for a possible integer overflow in grub's
video/fb/video_fb. It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: fix multiple integer overflows
Marta Rybczynska [Fri, 18 Feb 2022 10:05:41 +0000 (11:05 +0100)] 
grub: fix multiple integer overflows

This patch adds a fix for multiple integer overflows in grub's
video/fb/video_fb. It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: fix an integer overflow
Marta Rybczynska [Fri, 18 Feb 2022 10:05:40 +0000 (11:05 +0100)] 
grub: fix an integer overflow

This patch adds a fix for a potential integer overflow in grub's
video/fb/fbfill. It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: remove unneeded return value
Marta Rybczynska [Fri, 18 Feb 2022 10:05:39 +0000 (11:05 +0100)] 
grub: remove unneeded return value

This patch removes an uneeded return value in grub's (static)
grub_video_gop_fill_mode_info(). It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: fix a memory leak
Marta Rybczynska [Fri, 18 Feb 2022 10:05:38 +0000 (11:05 +0100)] 
grub: fix a memory leak

Add a fix of a memory leak in grub's commands/hashsum. It is a part
of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add a fix for a memory leak
Marta Rybczynska [Fri, 18 Feb 2022 10:05:37 +0000 (11:05 +0100)] 
grub: add a fix for a memory leak

This patch adds a fix for a memory leak in grub's normal/completion.
It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add a fix for a memory leak
Marta Rybczynska [Fri, 18 Feb 2022 10:05:36 +0000 (11:05 +0100)] 
grub: add a fix for a memory leak

This patch fixes a memory leak in grub's syslinux parsing. It is a part of
a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add a fix for a possible NULL dereference
Marta Rybczynska [Fri, 18 Feb 2022 10:05:35 +0000 (11:05 +0100)] 
grub: add a fix for a possible NULL dereference

This patch adds a fix for a possible NULL dereference in grub's
libgcrypt/mpi. It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add a fix for a possible unintended sign extension
Marta Rybczynska [Fri, 18 Feb 2022 10:05:34 +0000 (11:05 +0100)] 
grub: add a fix for a possible unintended sign extension

This patch fixes a possible unintended sign extension in grub's
libgcrypt/mpi. It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add a fix for a memory leak
Marta Rybczynska [Fri, 18 Feb 2022 10:05:33 +0000 (11:05 +0100)] 
grub: add a fix for a memory leak

This patch fixes a memory leak in grub's affs. It is a part of
a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: fix an error check
Marta Rybczynska [Fri, 18 Feb 2022 10:05:32 +0000 (11:05 +0100)] 
grub: fix an error check

This patch fixes an error check in grub's zfsinfo. It is a part of
a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add a fix for possible integer overflows
Marta Rybczynska [Fri, 18 Feb 2022 10:05:31 +0000 (11:05 +0100)] 
grub: add a fix for possible integer overflows

This patch adds a fix for a possible integer overflows in grub's zfs.
It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add a fix for a memory leak
Marta Rybczynska [Fri, 18 Feb 2022 10:05:30 +0000 (11:05 +0100)] 
grub: add a fix for a memory leak

This patch adds a fix for a memory leak in grub's path construction
in zfs. It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add a fix for a possible negative shift
Marta Rybczynska [Fri, 18 Feb 2022 10:05:29 +0000 (11:05 +0100)] 
grub: add a fix for a possible negative shift

This patch adds a fix for a possible negative shift in grub's zfs.
It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add a fix for a length check
Marta Rybczynska [Fri, 18 Feb 2022 10:05:28 +0000 (11:05 +0100)] 
grub: add a fix for a length check

This patch adds a fix for a volume name length check in grub's
hfsplus. It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: fix an integer overflow
Marta Rybczynska [Fri, 18 Feb 2022 10:05:27 +0000 (11:05 +0100)] 
grub: fix an integer overflow

This patch fixes a potential overflow in grub's disk/cryptodisk. It is
a part of a security series [1]

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: fix a memory leak
Marta Rybczynska [Fri, 18 Feb 2022 10:05:26 +0000 (11:05 +0100)] 
grub: fix a memory leak

Add a fix for a memory leak in grub'd disk/ldm. It is a part of
a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: fix a memory leak
Marta Rybczynska [Fri, 18 Feb 2022 10:05:25 +0000 (11:05 +0100)] 
grub: fix a memory leak

This patch adds a fix for a memory leak in grub's disk/ldm.
It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: fix a memory leak
Marta Rybczynska [Fri, 18 Feb 2022 10:05:24 +0000 (11:05 +0100)] 
grub: fix a memory leak

Add a fix for a memory leak in grub's disk/ldm. It is a part of
a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add a missing NULL check
Marta Rybczynska [Fri, 18 Feb 2022 10:05:23 +0000 (11:05 +0100)] 
grub: add a missing NULL check

This fix adds a missing check for NULL pointer from an external source
in grub's kern/partition. It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add structure initialization in zstd
Marta Rybczynska [Fri, 18 Feb 2022 10:05:22 +0000 (11:05 +0100)] 
grub: add structure initialization in zstd

This patch adds initialization of a structure in grub's zstd, which
might be left uninitialized by the compiler. It is a part of a security
series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add a fix for unnecessary assignements
Marta Rybczynska [Fri, 18 Feb 2022 10:05:21 +0000 (11:05 +0100)] 
grub: add a fix for unnecessary assignements

Add a fix for unnecessary assignements grub's io/lzopio. This patch
is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: fix an unitialized re_token in gnulib
Marta Rybczynska [Fri, 18 Feb 2022 10:05:20 +0000 (11:05 +0100)] 
grub: fix an unitialized re_token in gnulib

This patch adds a fix for an unitialized re_token in grub's gnulib.
It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add a fix for NULL pointer dereference
Marta Rybczynska [Fri, 18 Feb 2022 10:05:19 +0000 (11:05 +0100)] 
grub: add a fix for NULL pointer dereference

Add a fix for gnulib's regexec NULL pointer dereference. This patch
a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add a fix a NULL pointer dereference in gnulib
Marta Rybczynska [Fri, 18 Feb 2022 10:05:18 +0000 (11:05 +0100)] 
grub: add a fix a NULL pointer dereference in gnulib

This change adds a fix for a NULL pointer dereference of state
in gnulib. It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: fix an unitialized token in gnulib
Marta Rybczynska [Fri, 18 Feb 2022 10:05:17 +0000 (11:05 +0100)] 
grub: fix an unitialized token in gnulib

This change adds a fix for an unitialized token structure in gnulib.
It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add a fix for unused variable in gnulib
Marta Rybczynska [Fri, 18 Feb 2022 10:05:16 +0000 (11:05 +0100)] 
grub: add a fix for unused variable in gnulib

This changes adds a fix for an unused variable issue in gnulib.
It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add a fix for a possible NULL pointer dereference
Marta Rybczynska [Fri, 18 Feb 2022 10:05:15 +0000 (11:05 +0100)] 
grub: add a fix for a possible NULL pointer dereference

This change fixes a possible NULL pointer dereference in grub's
EFI support. It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: fix memory leak at error in grub_efi_get_filename()
Marta Rybczynska [Fri, 18 Feb 2022 10:05:14 +0000 (11:05 +0100)] 
grub: fix memory leak at error in grub_efi_get_filename()

This change fixes a memory leak on error in grub_efi_get_filename().
It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add a fix for malformed device path handling
Marta Rybczynska [Fri, 18 Feb 2022 10:05:13 +0000 (11:05 +0100)] 
grub: add a fix for malformed device path handling

This change fixes the malformed device paths in EFI handling.
Device paths of length 4 or shorter could cause different
kinds of unexpected behaviours.

This patch is NOT a part of [1], but is a dependency of one
of the patches included in the series.

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: fix wrong handling of argc == 0
Marta Rybczynska [Fri, 18 Feb 2022 10:05:12 +0000 (11:05 +0100)] 
grub: fix wrong handling of argc == 0

This change fixes wrong handling of argc == 0 causing a memory leak.
It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: fix a dangling memory pointer
Marta Rybczynska [Fri, 18 Feb 2022 10:05:11 +0000 (11:05 +0100)] 
grub: fix a dangling memory pointer

This change fixes a dangling memory pointer in the grub TFTP code.
It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: add a fix for a possible NULL dereference
Marta Rybczynska [Fri, 18 Feb 2022 10:05:10 +0000 (11:05 +0100)] 
grub: add a fix for a possible NULL dereference

This fix removes a possible NULL pointer dereference in grub
networking code. It is a part of a security series [1].

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogrub: fix a memory leak
Marta Rybczynska [Fri, 18 Feb 2022 10:05:09 +0000 (11:05 +0100)] 
grub: fix a memory leak

Backport a fix for a memory leak in grub_mmap_iterate(). This patch
is a part of a security series [1]

[1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00007.html

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agopuzzles: Upstream changed to main branch for development
Kartikey Rameshbhai Parmar [Wed, 23 Feb 2022 06:25:59 +0000 (06:25 +0000)] 
puzzles: Upstream changed to main branch for development

Signed-off-by: Kartikey Rameshbhai Parmar <kartikey.rameshbhai.parmar@intel.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoruby: 2.7.4 -> 2.7.5
Chee Yang Lee [Wed, 23 Feb 2022 06:17:30 +0000 (14:17 +0800)] 
ruby: 2.7.4 -> 2.7.5

This release includes security fixes.
CVE-2021-41817: Regular Expression Denial of Service Vulnerability of Date Parsing Methods
CVE-2021-41816: Buffer Overrun in CGI.escape_html
CVE-2021-41819: Cookie Prefix Spoofing in CGI::Cookie.parse

Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agotiff: fix for CVE-2022-22844
Purushottam Choudhary [Tue, 22 Feb 2022 12:34:53 +0000 (18:04 +0530)] 
tiff: fix for CVE-2022-22844

Backport patch from:
https://gitlab.com/libtiff/libtiff/-/commit/03047a26952a82daaa0792957ce211e0aa51bc64

Signed-off-by: Purushottam Choudhary <purushottam.choudhary@kpit.com>
Signed-off-by: Purushottam Choudhary <purushottamchoudhary29@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoopenssl: Add fix for CVE-2021-4160
Ranjitsinh Rathod [Fri, 11 Feb 2022 13:52:45 +0000 (19:22 +0530)] 
openssl: Add fix for CVE-2021-4160

Add a patch to fix CVE-2021-4160
The issue only affects OpenSSL on MIPS platforms.
Link: https://security-tracker.debian.org/tracker/CVE-2021-4160
Signed-off-by: Ranjitsinh Rathod <ranjitsinh.rathod@kpit.com>
Signed-off-by: Ranjitsinh Rathod <ranjitsinhrathod1991@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agovim: Upgrade 8.2.4314 -> 8.2.4424
Richard Purdie [Sun, 20 Feb 2022 14:51:40 +0000 (14:51 +0000)] 
vim: Upgrade 8.2.4314 -> 8.2.4424

License file had some grammar fixes.

Includes CVE-2022-0554.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a8d0a4026359c2c8a445dba9456f8a05470293c1)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agovim: Upgrade 4269 -> 4134
Richard Purdie [Sun, 6 Feb 2022 20:52:43 +0000 (20:52 +0000)] 
vim: Upgrade 4269 -> 4134

License text underwent changes on how to submit Uganda donations, switch from http
to https urls and an update date change but the license itself is unchanged.

Also, add an entry for the top level license file. This is also the vim license
so LICENSE is unchanged but we should monitor it too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d195005e415b0b2d7c8b0b65c0aef888d4d6fc8e)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agovim: upgrade to patch 4269
Ross Burton [Mon, 31 Jan 2022 12:44:07 +0000 (12:44 +0000)] 
vim: upgrade to patch 4269

Upgrade to the latest patch release to fix the following CVEs:

- CVE-2022-0261
- CVE-2022-0318
- CVE-2022-0319

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 96442e681c3acd82b09e3becd78e902709945f1f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agovim: update to include latest CVE fixes
Ross Burton [Mon, 17 Jan 2022 11:20:55 +0000 (11:20 +0000)] 
vim: update to include latest CVE fixes

Update the version to 4.2.4118, which incorporates the following CVE
fixes:

- CVE-2021-4187
- CVE-2022-0128
- CVE-2022-0156
- CVE-2022-0158

Also remove the explicit whitelisting of CVE-2021-3968 as this is now
handled with an accurate CPE specifying the fixed version.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 764519ad0da6b881918667ca272fcc273b56168a)
Signed-off-by: Steve Sakoman <steve@sakoman.com>