python3-twitter: mark CVE-2012-5825 patched
PATCH 1/5 python3-twitter: mark CVE-2012-5825 patched
Details: https://nvd.nist.gov/vuln/detail/CVE-2012-5825
The Debian bugtracker[1] indicated that the issue is tracked by upstream in github[2] (with a difference CVE ID, but same issue), where the vulnerability was confirmed. Later in the same github issue the solution is confirmed: the project switched to use the requests library, which doesn't suffer from this vulnerability.
Due to this mark the CVE as patched.
[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=692444
[2]: https://github.com/tweepy/tweepy/issues/279
Adapted to Kirkstone (CVE_STATUS -> CVE_CHECK_IGNORE)
--- meta-python/recipes-devtools/python/python3-twitter_4.8.0.bb | 3 +++ 1 file changed, 3 insertions(+)
meta-python/recipes-devtools/python/python3-twitter_4.8.0.bb +3 -0
@@ -16,3 +16,6 @@ RDEPENDS:${PN} += "\ ${PYTHON_PN}-requests \ ${PYTHON_PN}-six \ " + +# fixed-version: The vulnerability has been fixed since v3.1.0 +CVE_CHECK_IGNORE += "CVE-2012-5825"
PATCH 2/5 gpsd: patch CVE-2025-67268
Details: https://nvd.nist.gov/vuln/detail/CVE-2025-67268
Pick the patch that is referenced by the NVD advisory.
The original commit also contains a lot of commenting style changes (// vs /* */) and whitespace changes which were removed from the backport.
--- .../gpsd/gpsd/CVE-2025-67268.patch | 97 +++++++++++++++++++ .../recipes-navigation/gpsd/gpsd_3.23.1.bb | 1 + 2 files changed, 98 insertions(+) create mode 100644 meta-oe/recipes-navigation/gpsd/gpsd/CVE-2025-67268.patch
meta-oe/recipes-navigation/gpsd/gpsd/CVE-2025-67268.patch new file +97 -0
@@ -0,0 +1,97 @@ +From b3abe9d49d8fcc3f824d74a5c2cdcc30838f5904 Mon Sep 17 00:00:00 2001 +From: "Gary E. Miller" <[email protected]> +Date: Tue, 2 Dec 2025 19:36:04 -0800 +Subject: [PATCH] drivers/driver_nmea2000.c: Fix issue 356, skyview buffer + overrun. + +CVE: CVE-2025-67268 +Upstream-Status: Backport [https://github.com/ntpsec/gpsd/commit/dc966aa74c075d0a6535811d98628625cbfbe3f4] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + drivers/driver_nmea2000.c | 123 ++++++++++++++++++++++---------------- + 1 file changed, 71 insertions(+), 52 deletions(-) + +diff --git a/drivers/driver_nmea2000.c b/drivers/driver_nmea2000.c +index 66959f0..70462b3 100644 +--- a/drivers/driver_nmea2000.c ++++ b/drivers/driver_nmea2000.c +@@ -89,14 +89,14 @@ static int scale_int(int32_t var, const int64_t factor) + static void print_data(struct gps_context_t *context, + unsigned char *buffer, int len, PGN *pgn) + { +- if ((libgps_debuglevel >= LOG_IO) != 0) { +- int l1, l2, ptr; ++ if (LOG_IO <= libgps_debuglevel) { ++ int l1; + char bu[128]; + +- ptr = 0; +- l2 = sprintf(&bu[ptr], "got data:%6u:%3d: ", pgn->pgn, len); ++ int ptr = 0; ++ int l2 = sprintf(&bu[ptr], "got data:%6u:%3d: ", pgn->pgn, len); + ptr += l2; +- for (l1=0;l1<len;l1++) { ++ for (l1 = 0; l1 < len; l1++) { + if (((l1 % 20) == 0) && (l1 != 0)) { + GPSD_LOG(LOG_IO, &context->errout, "%s\n", bu); + ptr = 0; +@@ -434,6 +434,7 @@ static gps_mask_t hnd_129540(unsigned char *bu, int len, PGN *pgn, + struct gps_device_t *session) + { + int l1; ++ int expected_len; + + print_data(session->context, bu, len, pgn); + GPSD_LOG(LOG_DATA, &session->context->errout, +@@ -441,24 +442,39 @@ static gps_mask_t hnd_129540(unsigned char *bu, int len, PGN *pgn, + + session->driver.nmea2000.sid[2] = bu[0]; + session->gpsdata.satellites_visible = (int)bu[2]; ++ if (MAXCHANNELS <= session->gpsdata.satellites_visible) { ++ // Handle a CVE for overrunning skyview[] ++ GPSD_LOG(LOG_WARN, &session->context->errout, ++ "pgn %6d(%3d): Too many sats %d\n", ++ pgn->pgn, session->driver.nmea2000.unit, ++ session->gpsdata.satellites_visible); ++ session->gpsdata.satellites_visible = MAXCHANNELS; ++ } ++ expected_len = 3 + (12 * session->gpsdata.satellites_visible); ++ if (len != expected_len) { ++ GPSD_LOG(LOG_WARN, &session->context->errout, ++ "pgn %6d(%3d): wrong length %d s/b %d\n", ++ pgn->pgn, session->driver.nmea2000.unit, ++ len, expected_len); ++ return 0; ++ } + + memset(session->gpsdata.skyview, '\0', sizeof(session->gpsdata.skyview)); +- for (l1=0;l1<session->gpsdata.satellites_visible;l1++) { +- int svt; +- double azi, elev, snr; +- +- elev = getles16(bu, 3+12*l1+1) * 1e-4 * RAD_2_DEG; +- azi = getleu16(bu, 3+12*l1+3) * 1e-4 * RAD_2_DEG; +- snr = getles16(bu, 3+12*l1+5) * 1e-2; ++ for (l1 = 0; l1 < session->gpsdata.satellites_visible; l1++) { ++ int offset = 3 + (12 * l1); ++ double elev = getles16(bu, offset + 1) * 1e-4 * RAD_2_DEG; ++ double azi = getleu16(bu, offset + 3) * 1e-4 * RAD_2_DEG; ++ double snr = getles16(bu, offset + 5) * 1e-2; + +- svt = (int)(bu[3+12*l1+11] & 0x0f); ++ int svt = (int)(bu[offset + 11] & 0x0f); + +- session->gpsdata.skyview[l1].elevation = (short) (round(elev)); +- session->gpsdata.skyview[l1].azimuth = (short) (round(azi)); ++ session->gpsdata.skyview[l1].elevation = elev; ++ session->gpsdata.skyview[l1].azimuth = azi; + session->gpsdata.skyview[l1].ss = snr; +- session->gpsdata.skyview[l1].PRN = (short)bu[3+12*l1+0]; ++ session->gpsdata.skyview[l1].PRN = (int16_t)bu[offset]; + session->gpsdata.skyview[l1].used = false; +- if ((svt == 2) || (svt == 5)) { ++ if ((2 == svt) || ++ (5 == svt)) { + session->gpsdata.skyview[l1].used = true; + } + }
meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb +1 -0
@@ -7,6 +7,7 @@ PROVIDES = "virtual/gpsd" SRC_URI = "${SAVANNAH_GNU_MIRROR}/${BPN}/${BP}.tar.gz \ file://gpsd.init \ + file://CVE-2025-67268.patch \ " SRC_URI[sha256sum] = "0b991ce9a46538c4ea450f7a8ee428ff44fb4f8d665fddf2ffe40fe0ae9a6c09"
PATCH 3/5 gnome-settings-daemon: ignore CVE-2024-38394
In reply to Gyorgy SarvariDetails: https://nvd.nist.gov/vuln/detail/CVE-2024-38394
The CVE has the disputed flag. The project maintainers claim that the issue is not in gnome-setttings-daemon. If the vulnerability needs to be handled in gnome-settings-daemon, than it is a new feature rather than a vulnerability fix.
Due to this, ignore this CVE.
--- .../gnome-settings-daemon/gnome-settings-daemon_42.2.bb | 3 +++ 1 file changed, 3 insertions(+)
meta-gnome/recipes-gnome/gnome-settings-daemon/gnome-settings-daemon_42.2.bb +3 -0
@@ -44,3 +44,6 @@ FILES:${PN} += " \ ${systemd_user_unitdir} \ ${libdir}/gnome-settings-daemon-42/libgsd.so \ " + +# mitigation would be a new feature, not a CVE +CVE_CHECK_IGNORE += "CVE-2024-38394"
PATCH 4/5 frr: ignore CVE-2023-3748, CVE-2023-41359..61
In reply to Gyorgy SarvariDetails: https://nvd.nist.gov/vuln/detail/CVE-2023-3748
https://nvd.nist.gov/vuln/detail/CVE-2023-41359
https://nvd.nist.gov/vuln/detail/CVE-2023-41360
https://nvd.nist.gov/vuln/detail/CVE-2023-41361
Regarding CVE-2023-3748:
Based on Debian's investigation, the vulnerability was solved by [1]. However that vulnerable code that was fixed was introduced after the recipe version, only in version 8.4.0[2].
Since the recipe version isn't affected by this CVE, ignore it.
Regarding CVE-2023-41359:
The pull request[3] referenced by the NVD report references another pull request[4] which was opened to backport the fix. The conversion on this PR confirms that the vulnerable feature was introduced in 8.5.
Due to this, ignore this CVE.
Regarding CVE-2023-41360:
The vulnerable code was introduced[5] in version 8.4.0, and the recipe version is not vulnerable.
Due to this ignore this CVE.
Regarding CVE-2023-41361:
The vulnerable code was introduced[6] in version 9.0 and the recipe version is not vulnerable.
Due to this ignore this CVE.
[1]: https://github.com/FRRouting/frr/commit/0a95d121ca8e1f43d41d952d6c82d111ca850085
[2]: https://github.com/FRRouting/frr/commit/54a3e60b3ebd3621c4dd90b0b49e8e36e4e100d8
[3]: https://github.com/FRRouting/frr/pull/14232
[4]: https://github.com/FRRouting/frr/pull/15927
[5]: https://github.com/FRRouting/frr/commit/f1aa49293a4a8302b70989aaa9ceb715385c3a7e
[6]: https://github.com/FRRouting/frr/commit/234f6fd4f4804bb17bd8cbb1dd91994a914f38d2
--- meta-networking/recipes-protocols/frr/frr_8.2.2.bb | 9 +++++++++ 1 file changed, 9 insertions(+)
meta-networking/recipes-protocols/frr/frr_8.2.2.bb +9 -0
@@ -42,6 +42,15 @@ SRCREV = "79188bf710e92acf42fb5b9b0a2e9593a5ee9b05" CVE_PRODUCT = "frrouting" +# the vulnerability was introduced in v8.4.0 +CVE_CHECK_IGNORE += "CVE-2023-3748 CVE-2023-41360" + +# the vulnerability did not exist until 8.5 +CVE_CHECK_IGNORE += "CVE-2023-41359" + +# the vulnerability was introduced in 9.0 +CVE_CHECK_IGNORE += "CVE-2023-41361" + S = "${WORKDIR}/git" # Due to libyang not supported on these arches:
PATCH 5/5 libass: patch CVE-2020-24994
In reply to Gyorgy SarvariDetails: https://nvd.nist.gov/vuln/detail/CVE-2020-24994
Backport the commit that is referenced by the NVD advisory.
--- .../libass/libass/CVE-2020-24994.patch | 48 +++++++++++++++++++ .../libass/libass_0.14.0.bb | 4 +- 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-multimedia/libass/libass/CVE-2020-24994.patch
meta-oe/recipes-multimedia/libass/libass/CVE-2020-24994.patch new file +48 -0
@@ -0,0 +1,48 @@ +From 99eaa60314c4e28c2f0c295e165daf22c5601cc3 Mon Sep 17 00:00:00 2001 +From: Oleg Oshmyan <[email protected]> +Date: Thu, 4 Jan 2018 02:42:09 +0200 +Subject: [PATCH] parse_tags: don't recurse for nested \t() + +This fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4892 +(stack overflow on deeply nested \t()). + +This is possible because parentheses do not nest and the first ')' +terminates the whole tag. Thus something like \t(\t(\t(\t(\t() can be +read in a simple loop with no recursion required. Recursion is also +not required if the ')' is missing entirely and the outermost \t(... +never ends. + +See https://github.com/libass/libass/pull/296 for more backstory. + +CVE: CVE-2020-24994 +Upstream-Status: Backport [https://github.com/libass/libass/commit/6835731c2fe4164a0c50bc91d12c43b2a2b4e] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + libass/ass_parse.c | 14 ++++++++++++-- + 1 file changed, 12 insertions(+), 2 deletions(-) + +diff --git a/libass/ass_parse.c b/libass/ass_parse.c +index c83634a..991d1b6 100644 +--- a/libass/ass_parse.c ++++ b/libass/ass_parse.c +@@ -650,8 +650,18 @@ char *parse_tag(ASS_Renderer *render_priv, char *p, char *end, double pwr) + k = pow(((double) (t - t1)) / delta_t, accel); + } + p = args[cnt].start; +- while (p < args[cnt].end) +- p = parse_tag(render_priv, p, args[cnt].end, k); // maybe k*pwr ? no, specs forbid nested \t's ++ if (args[cnt].end < end) { ++ while (p < args[cnt].end) ++ p = parse_tag(render_priv, p, args[cnt].end, k); // maybe k*pwr ? no, specs forbid nested \t's ++ } else { ++ assert(q == end); ++ // No other tags can possibly follow this \t tag, ++ // so we don't need to restore pwr after parsing \t. ++ // The recursive call is now essentially a tail call, ++ // so optimize it away. ++ pwr = k; ++ q = p; ++ } + } else if (complex_tag("clip")) { + if (nargs == 4) { + int x0, y0, x1, y1;
meta-oe/recipes-multimedia/libass/libass_0.14.0.bb +3 -1
@@ -7,7 +7,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=a42532a0684420bdb15556c3cdd49a75" DEPENDS = "enca fontconfig freetype libpng fribidi" -SRC_URI = "git://github.com/libass/libass.git;branch=master;protocol=https" +SRC_URI = "git://github.com/libass/libass.git;branch=master;protocol=https \ + file://CVE-2020-24994.patch \ + " SRCREV = "73284b676b12b47e17af2ef1b430527299e10c17" S = "${WORKDIR}/git"