Skip to contentSkip to conversation

package/strongswan: fix patch header

PATCH Applied Thomas Perale via buildroot 1 participant 5 messages Feb 5 – Feb 13

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/strongswan: fix patch header

Commit [1] introduced a patch to fix CVE-2025-62291. Since [2] the security patches neeed to reference the vulnerability with the CVE: trailer in the patch header.

[1] b009935e27 package/strongswan: add patch to fix CVE-2025-62291
[2] 1167d0ff3d docs/manual: mention CVE trailer

---
 package/strongswan/0001-eap_mschapv2_failure_request_len.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/strongswan/0001-eap_mschapv2_failure_request_len.patch +1 -1
index 8442cc7816..7442c123c4 100644
@@ -21,7 +21,7 @@ Ubuntu), the compiler will use __memcpy_chk(), which prevents that buffer
 overflow and causes the daemon to get aborted immediately instead.
 
 Fixes: f98cdf7a4765 ("adding plugin for EAP-MS-CHAPv2")
-Fixes: CVE-2025-62291
+CVE: CVE-2025-62291
 Upstream: https://github.com/strongswan/strongswan/commit/c687ada6a6f68913651e355fd09f906893096b32
 Signed-off-by: Waldemar Brodkorb <[email protected]>
 ---
Signature · 6 lines
2.52.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hi Thomas,

Quoted 3 lines · Thomas Perale via buildroot

Commit [1] introduced a patch to fix CVE-2025-62291. Since [2] the security patches neeed to reference the vulnerability with the CVE: trailer in the patch header.

Good to know! I was confused for a bit why this didn't make it into the deployed nightly manual yet... but i think that's because the nightly manual redirects to the stable manual currently?

At least https://nightly.buildroot.org/manual.html doesn't have this information yet.

Quoted 14 lines

[1] b009935e27 package/strongswan: add patch to fix CVE-2025-62291
[2] 1167d0ff3d docs/manual: mention CVE trailer

---
  package/strongswan/0001-eap_mschapv2_failure_request_len.patch | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
package/strongswan/0001-eap_mschapv2_failure_request_len.patch +0 -0
index 8442cc7816..7442c123c4 100644

package/strongswan/0001-eap_mschapv2_failure_request_len.patch Ubuntu), the compiler will use __memcpy_chk(), which prevents that buffer · line 24

Quoted 5 lines
package/strongswan/0001-eap_mschapv2_failure_request_len.patch +1 -1
@@ -21,7 +21,7 @@ Ubuntu), the compiler will use __memcpy_chk(), which prevents that buffer
  overflow and causes the daemon to get aborted immediately instead.
 
  Fixes: f98cdf7a4765 ("adding plugin for EAP-MS-CHAPv2")
-Fixes: CVE-2025-62291
+CVE: CVE-2025-62291

The Fixes: line is actually from the patch as taken from upstream [1], I wonder if we'd want to keep that intact and put our own metadata below it? But that would also look a bit weird I guess. Thoughts?

[1] https://download.strongswan.org/security/CVE-2025-62291/strongswan-4.4.0-6.0.2_eap_mschapv2_failure_request_len.patch

package/strongswan/0001-eap_mschapv2_failure_request_len.patch Ubuntu), the compiler will use __memcpy_chk(), which prevents that buffer · line 27

Quoted 3 lines
package/strongswan/0001-eap_mschapv2_failure_request_len.patch +0 -0
  Upstream: https://github.com/strongswan/strongswan/commit/c687ada6a6f68913651e355fd09f906893096b32
  Signed-off-by: Waldemar Brodkorb <[email protected]>
  ---

Marcus
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw

Hi Marcus,

In reply of:

Quoted 10 lines

Hi Thomas,

Quoted 3 lines · Thomas Perale via buildroot

Commit [1] introduced a patch to fix CVE-2025-62291. Since [2] the security patches neeed to reference the vulnerability with the CVE: trailer in the patch header.

Good to know! I was confused for a bit why this didn't make it into the deployed nightly manual yet... but i think that's because the nightly manual redirects to the stable manual currently?

At least https://nightly.buildroot.org/manual.html doesn't have this information yet.

Unfortunately it's not checked with 'check-package' yet. Because I need both the context of the '.mk' and the patch to have a rule to check this in check-package it's not trivial to add a check :/

Quoted 6 lines
Quoted 6 lines
Quoted 1 line

[1] b009935e27 package/strongswan: add patch to fix CVE-2025-62291

[2] 1167d0ff3d docs/manual: mention CVE trailer

Quoted 1 line
---
  package/strongswan/0001-eap_mschapv2_failure_request_len.patch | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 11 lines

package/strongswan/0001-eap_mschapv2_failure_request_len.patch Ubuntu), the compiler will use __memcpy_chk(), which prevents that buffer · line 23

Quoted 9 lines

package/strongswan/0001-eap_mschapv2_failure_request_len.patch

Quoted 1 line
package/strongswan/0001-eap_mschapv2_failure_request_len.patch +0 -0

index 8442cc7816..7442c123c4 100644

package/strongswan/0001-eap_mschapv2_failure_request_len.patch +1 -1
@@ -21,7 +21,7 @@ Ubuntu), the compiler will use __memcpy_chk(), which prevents that buffer
  overflow and causes the daemon to get aborted immediately instead.
  >   Fixes: f98cdf7a4765 ("adding plugin for EAP-MS-CHAPv2")
-Fixes: CVE-2025-62291
+CVE: CVE-2025-62291

The Fixes: line is actually from the patch as taken from upstream [1], I wonder if we'd want to keep that intact and put our own metadata below it? But that would also look a bit weird I guess. Thoughts?

Personally, for the patch I send to Buildroot I tend to remove some useless tags sometime.

Quoted 11 lines

[1] https://download.strongswan.org/security/CVE-2025-62291/strongswan-4.4.0-6.0.2_eap_mschapv2_failure_request_len.patch

package/strongswan/0001-eap_mschapv2_failure_request_len.patch Ubuntu), the compiler will use __memcpy_chk(), which prevents that buffer · line 27

Quoted 3 lines
package/strongswan/0001-eap_mschapv2_failure_request_len.patch +0 -0
  Upstream: https://github.com/strongswan/strongswan/commit/c687ada6a6f68913651e355fd09f906893096b32
  Signed-off-by: Waldemar Brodkorb <[email protected]>
  ---

Marcus
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw
In reply to Thomas Perale via buildroot
Quoted 9 lines · Thomas Perale via buildroot

Commit [1] introduced a patch to fix CVE-2025-62291. Since [2] the security patches neeed to reference the vulnerability with the CVE: trailer in the patch header.

[1] b009935e27 package/strongswan: add patch to fix CVE-2025-62291
[2] 1167d0ff3d docs/manual: mention CVE trailer

---

Applied to master, thanks!

Marcus
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#4 lore raw
In reply to Thomas Perale via buildroot

In reply of:

Quoted 8 lines

Commit [1] introduced a patch to fix CVE-2025-62291. Since [2] the security patches neeed to reference the vulnerability with the CVE: trailer in the patch header.

[1] b009935e27 package/strongswan: add patch to fix CVE-2025-62291
[2] 1167d0ff3d docs/manual: mention CVE trailer

Applied to 2025.02.x & 2025.11.x. Thanks

Quoted 24 lines
---
 package/strongswan/0001-eap_mschapv2_failure_request_len.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/strongswan/0001-eap_mschapv2_failure_request_len.patch +1 -1
index 8442cc7816..7442c123c4 100644
@@ -21,7 +21,7 @@ Ubuntu), the compiler will use __memcpy_chk(), which prevents that buffer
 overflow and causes the daemon to get aborted immediately instead.
 
 Fixes: f98cdf7a4765 ("adding plugin for EAP-MS-CHAPv2")
-Fixes: CVE-2025-62291
+CVE: CVE-2025-62291
 Upstream: https://github.com/strongswan/strongswan/commit/c687ada6a6f68913651e355fd09f906893096b32
 Signed-off-by: Waldemar Brodkorb <[email protected]>
 ---
Signature · 6 lines
2.52.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot