diff options
| author | Ankur Tyagi <ankur.tyagi85@gmail.com> | 2026-01-09 22:28:36 +1300 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@oss.qualcomm.com> | 2026-01-12 07:51:59 +0530 |
| commit | c73fe4bd7e2767acaa5ccad6ebb24e9d5f822402 (patch) | |
| tree | 8634cccf314d975ab9a8d518031d53f30bf2846d /meta-networking | |
| parent | b45ac4e0ef9426dd173f5df1522b6e22e8f066d1 (diff) | |
| download | meta-openembedded-c73fe4bd7e2767acaa5ccad6ebb24e9d5f822402.tar.gz | |
mtr: patch CVE-2025-49809
Details: https://nvd.nist.gov/vuln/detail/CVE-2025-49809
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
Diffstat (limited to 'meta-networking')
| -rw-r--r-- | meta-networking/recipes-support/mtr/mtr/CVE-2025-49809.patch | 39 | ||||
| -rw-r--r-- | meta-networking/recipes-support/mtr/mtr_0.95.bb | 4 |
2 files changed, 42 insertions, 1 deletions
diff --git a/meta-networking/recipes-support/mtr/mtr/CVE-2025-49809.patch b/meta-networking/recipes-support/mtr/mtr/CVE-2025-49809.patch new file mode 100644 index 0000000000..f7d1b06934 --- /dev/null +++ b/meta-networking/recipes-support/mtr/mtr/CVE-2025-49809.patch | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | From 9b5107ff91b72c0104d9dbeee076f37f584ea4b4 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: "R.E. Wolff" <R.E.Wolff@BitWizard.nl> | ||
| 3 | Date: Sun, 29 Jun 2025 14:06:00 +0200 | ||
| 4 | Subject: [PATCH] Added protection against use of MTR_PACKET under special | ||
| 5 | circumstances | ||
| 6 | |||
| 7 | CVE: CVE-2025-49809 | ||
| 8 | Upstream-Status: Backport [https://github.com/traviscross/mtr/commit/5226f105f087c29d3cfad9f28000e7536af91ac6] | ||
| 9 | (cherry picked from commit 5226f105f087c29d3cfad9f28000e7536af91ac6) | ||
| 10 | Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com> | ||
| 11 | --- | ||
| 12 | ui/cmdpipe.c | 13 ++++++++++--- | ||
| 13 | 1 file changed, 10 insertions(+), 3 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/ui/cmdpipe.c b/ui/cmdpipe.c | ||
| 16 | index d22b236..1a66293 100644 | ||
| 17 | --- a/ui/cmdpipe.c | ||
| 18 | +++ b/ui/cmdpipe.c | ||
| 19 | @@ -220,10 +220,17 @@ void execute_packet_child( | ||
| 20 | the path to the mtr-packet executable. This is necessary | ||
| 21 | for debugging changes for mtr-packet. | ||
| 22 | */ | ||
| 23 | - char *mtr_packet_path = getenv("MTR_PACKET"); | ||
| 24 | - if (mtr_packet_path == NULL) { | ||
| 25 | + char * mtr_packet_path = NULL; | ||
| 26 | + | ||
| 27 | + // In the rare case that mtr-packet is not setuid-root, | ||
| 28 | + // and a select group of users has sudo privileges to run | ||
| 29 | + // mtr and not much else, THEN create /etc/mtr.is.run.under.sudo | ||
| 30 | + // to prevent a privilege escalation when one of those accounts | ||
| 31 | + // is compromised. CVE-2025-49809 | ||
| 32 | + if (access ("/etc/mtr.is.run.under.sudo", F_OK) != 0) | ||
| 33 | + mtr_packet_path = getenv("MTR_PACKET"); | ||
| 34 | + if (mtr_packet_path == NULL) | ||
| 35 | mtr_packet_path = "mtr-packet"; | ||
| 36 | - } | ||
| 37 | |||
| 38 | /* | ||
| 39 | First, try to execute mtr-packet from PATH | ||
diff --git a/meta-networking/recipes-support/mtr/mtr_0.95.bb b/meta-networking/recipes-support/mtr/mtr_0.95.bb index 92f9c4bfc0..c1d6ff5605 100644 --- a/meta-networking/recipes-support/mtr/mtr_0.95.bb +++ b/meta-networking/recipes-support/mtr/mtr_0.95.bb | |||
| @@ -9,7 +9,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | |||
| 9 | file://ui/mtr.c;beginline=5;endline=16;md5=00a894a39d53726a27386534d1c4e468" | 9 | file://ui/mtr.c;beginline=5;endline=16;md5=00a894a39d53726a27386534d1c4e468" |
| 10 | 10 | ||
| 11 | SRCREV = "852e5617fbf331cf292723702161f0ac9afe257c" | 11 | SRCREV = "852e5617fbf331cf292723702161f0ac9afe257c" |
| 12 | SRC_URI = "git://github.com/traviscross/mtr;branch=master;protocol=https" | 12 | SRC_URI = "git://github.com/traviscross/mtr;branch=master;protocol=https \ |
| 13 | file://CVE-2025-49809.patch \ | ||
| 14 | " | ||
| 13 | 15 | ||
| 14 | S = "${WORKDIR}/git" | 16 | S = "${WORKDIR}/git" |
| 15 | 17 | ||
