Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alpine
aports
Commits
402fce9c
Commit
402fce9c
authored
1 year ago
by
omni
Browse files
Options
Downloads
Patches
Plain Diff
main/c-ares: patch CVE-2024-25629
parent
88553335
No related branches found
No related tags found
1 merge request
!62898
[3.16] main/c-ares: patch CVE-2024-25629
Pipeline
#221919
passed
1 year ago
Stage: lint
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main/c-ares/APKBUILD
+8
-3
8 additions, 3 deletions
main/c-ares/APKBUILD
main/c-ares/CVE-2024-25629.patch
+21
-0
21 additions, 0 deletions
main/c-ares/CVE-2024-25629.patch
with
29 additions
and
3 deletions
main/c-ares/APKBUILD
+
8
−
3
View file @
402fce9c
...
...
@@ -2,16 +2,20 @@
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname
=
c-ares
pkgver
=
1.19.1
pkgrel
=
0
pkgrel
=
1
pkgdesc
=
"An asynchronously DNS/names resolver library"
url
=
"https://c-ares.
haxx.se
/"
url
=
"https://c-ares.
org
/"
arch
=
"all"
options
=
"!check"
license
=
"MIT"
subpackages
=
"
$pkgname
-doc
$pkgname
-static
$pkgname
-dev"
source
=
"https://c-ares.haxx.se/download/c-ares-
$pkgver
.tar.gz"
source
=
"https://c-ares.haxx.se/download/c-ares-
$pkgver
.tar.gz
CVE-2024-25629.patch
"
# secfixes:
# 1.19.1-r1:
# - CVE-2024-25629
# 1.17.2-r0:
# - CVE-2021-3672
...
...
@@ -42,4 +46,5 @@ package() {
sha512sums
=
"
466a94efda626e815a6ef7a890637056339f883d549ea6055e289fd8cd2391130e5682c905c0fb3bd7e955af7f6deb793562c170eb0ee066a4a62085a82ba470 c-ares-1.19.1.tar.gz
353223ab92581d652ef9f282207f8a9a9af6dc83737df3dacd163f3de64dc1c8f3d32db7536e8815704cca8e0e2291720057e98a426eb8590261a43c82ce60fe CVE-2024-25629.patch
"
This diff is collapsed.
Click to expand it.
main/c-ares/CVE-2024-25629.patch
0 → 100644
+
21
−
0
View file @
402fce9c
Based on upstream commit a804c04ddc8245fc8adf0e92368709639125e183
"Merge pull request from GHSA-mg26-v6qh-x48q"
--- a/src/lib/ares__read_line.c
+++ b/src/lib/ares__read_line.c
@@ -49,6 +49,14 @@
int ares__read_line(FILE *fp, char **buf
if (!fgets(*buf + offset, bytestoread, fp))
return (offset != 0) ? 0 : (ferror(fp)) ? ARES_EFILE : ARES_EOF;
len = offset + strlen(*buf + offset);
+
+ /* Probably means there was an embedded NULL as the first character in
+ * the line, throw away line */
+ if (len == 0) {
+ offset = 0;
+ continue;
+ }
+
if ((*buf)[len - 1] == '\n')
{
(*buf)[len - 1] = 0;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment