diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2026-02-26 15:46:22 +0100 |
|---|---|---|
| committer | Gyorgy Sarvari <skandigraun@gmail.com> | 2026-02-27 14:28:50 +0100 |
| commit | 3a9f929fb04fa4ffb158ea5b9fe9699f9aff1ac1 (patch) | |
| tree | e396fbcc248bf25e0aa92bf95ababf7fd0fd7bbf | |
| parent | 68c3e48a5923e9857ace1b2f06218d8a40e28116 (diff) | |
| download | meta-openembedded-3a9f929fb04fa4ffb158ea5b9fe9699f9aff1ac1.tar.gz | |
fontforge: patch CVE-2025-15270
Details: https://nvd.nist.gov/vuln/detail/CVE-2025-15270
Pick the patch that mentions this vulnerbaility explicitly
in its description.
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
| -rw-r--r-- | meta-oe/recipes-graphics/fontforge/fontforge/CVE-2025-15270.patch | 44 | ||||
| -rw-r--r-- | meta-oe/recipes-graphics/fontforge/fontforge_20190801.bb | 1 |
2 files changed, 45 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/fontforge/fontforge/CVE-2025-15270.patch b/meta-oe/recipes-graphics/fontforge/fontforge/CVE-2025-15270.patch new file mode 100644 index 0000000000..b70a395f79 --- /dev/null +++ b/meta-oe/recipes-graphics/fontforge/fontforge/CVE-2025-15270.patch | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | From c36b95c57f85a34ad85ca2be34f62ff1100d52f1 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ahmet Furkan Kavraz | ||
| 3 | <55850855+ahmetfurkankavraz@users.noreply.github.com> | ||
| 4 | Date: Sat, 31 Jan 2026 21:23:41 +0100 | ||
| 5 | Subject: [PATCH] Fix CVE-2025-15270: Heap buffer overflow in SFD kern class | ||
| 6 | parsing (#5743) | ||
| 7 | |||
| 8 | Fixes: CVE-2025-15270 | ZDI-25-1194 | ZDI-CAN-28563 | ||
| 9 | |||
| 10 | Co-authored-by: Ahmet Furkan Kavraz <kavraz@amazon.com> | ||
| 11 | |||
| 12 | CVE: CVE-2025-15270 | ||
| 13 | Upstream-Status: Backport [https://github.com/fontforge/fontforge/commit/d01333a5bfa2ac4ed698c24b323d02107deacad7] | ||
| 14 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 15 | --- | ||
| 16 | fontforge/sfd.c | 8 ++++++++ | ||
| 17 | 1 file changed, 8 insertions(+) | ||
| 18 | |||
| 19 | diff --git a/fontforge/sfd.c b/fontforge/sfd.c | ||
| 20 | index 940627a3b..99d92b051 100644 | ||
| 21 | --- a/fontforge/sfd.c | ||
| 22 | +++ b/fontforge/sfd.c | ||
| 23 | @@ -8276,6 +8276,10 @@ bool SFD_GetFontMetaData( FILE *sfd, | ||
| 24 | for ( i=classstart; i<kc->first_cnt; ++i ) { | ||
| 25 | if (kernclassversion < 3) { | ||
| 26 | getint(sfd,&temp); | ||
| 27 | + if (temp < 0) { | ||
| 28 | + LogError(_("Corrupted SFD file: Invalid kern class name length %d. Aborting load."), temp); | ||
| 29 | + return false; | ||
| 30 | + } | ||
| 31 | kc->firsts[i] = malloc(temp+1); kc->firsts[i][temp] = '\0'; | ||
| 32 | nlgetc(sfd); /* skip space */ | ||
| 33 | fread(kc->firsts[i],1,temp,sfd); | ||
| 34 | @@ -8293,6 +8297,10 @@ bool SFD_GetFontMetaData( FILE *sfd, | ||
| 35 | for ( i=1; i<kc->second_cnt; ++i ) { | ||
| 36 | if (kernclassversion < 3) { | ||
| 37 | getint(sfd,&temp); | ||
| 38 | + if (temp < 0) { | ||
| 39 | + LogError(_("Corrupted SFD file: Invalid kern class name length %d. Aborting load."), temp); | ||
| 40 | + return false; | ||
| 41 | + } | ||
| 42 | kc->seconds[i] = malloc(temp+1); kc->seconds[i][temp] = '\0'; | ||
| 43 | nlgetc(sfd); /* skip space */ | ||
| 44 | fread(kc->seconds[i],1,temp,sfd); | ||
diff --git a/meta-oe/recipes-graphics/fontforge/fontforge_20190801.bb b/meta-oe/recipes-graphics/fontforge/fontforge_20190801.bb index 41d43114bf..39f434bfd4 100644 --- a/meta-oe/recipes-graphics/fontforge/fontforge_20190801.bb +++ b/meta-oe/recipes-graphics/fontforge/fontforge_20190801.bb | |||
| @@ -21,6 +21,7 @@ SRC_URI = "git://github.com/${BPN}/${BPN}.git;branch=master;protocol=https \ | |||
| 21 | file://CVE-2020-25690-2.patch \ | 21 | file://CVE-2020-25690-2.patch \ |
| 22 | file://CVE-2024-25081-25082.patch \ | 22 | file://CVE-2024-25081-25082.patch \ |
| 23 | file://CVE-2025-15269.patch \ | 23 | file://CVE-2025-15269.patch \ |
| 24 | file://CVE-2025-15270.patch \ | ||
| 24 | " | 25 | " |
| 25 | S = "${WORKDIR}/git" | 26 | S = "${WORKDIR}/git" |
| 26 | 27 | ||
