initial import
This commit is contained in:
36
fcgi/CVE-2025-23016.patch
Normal file
36
fcgi/CVE-2025-23016.patch
Normal file
@@ -0,0 +1,36 @@
|
||||
From b0eabcaf4d4f371514891a52115c746815c2ff15 Mon Sep 17 00:00:00 2001
|
||||
From: Pycatchown <39068868+Pycatchown@users.noreply.github.com>
|
||||
Date: Tue, 8 Apr 2025 17:39:30 +0200
|
||||
Subject: [PATCH] Update fcgiapp.c
|
||||
|
||||
Fixing an integer overflow (CVE-2025-23016)
|
||||
---
|
||||
libfcgi/fcgiapp.c | 8 ++++++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/libfcgi/fcgiapp.c b/libfcgi/fcgiapp.c
|
||||
index 4ffe318..99c3630 100644
|
||||
--- a/libfcgi/fcgiapp.c
|
||||
+++ b/libfcgi/fcgiapp.c
|
||||
@@ -1175,6 +1175,10 @@ static int ReadParams(Params *paramsPtr, FCGX_Stream *stream)
|
||||
}
|
||||
nameLen = ((nameLen & 0x7f) << 24) + (lenBuff[0] << 16)
|
||||
+ (lenBuff[1] << 8) + lenBuff[2];
|
||||
+ if (nameLen >= INT_MAX) {
|
||||
+ SetError(stream, FCGX_PARAMS_ERROR);
|
||||
+ return -1;
|
||||
+ }
|
||||
}
|
||||
if((valueLen = FCGX_GetChar(stream)) == EOF) {
|
||||
SetError(stream, FCGX_PARAMS_ERROR);
|
||||
@@ -1187,6 +1191,10 @@ static int ReadParams(Params *paramsPtr, FCGX_Stream *stream)
|
||||
}
|
||||
valueLen = ((valueLen & 0x7f) << 24) + (lenBuff[0] << 16)
|
||||
+ (lenBuff[1] << 8) + lenBuff[2];
|
||||
+ if (valueLen >= INT_MAX) {
|
||||
+ SetError(stream, FCGX_PARAMS_ERROR);
|
||||
+ return -1;
|
||||
+ }
|
||||
}
|
||||
/*
|
||||
* nameLen and valueLen are now valid; read the name and value
|
||||
33
fcgi/PKGBUILD
Normal file
33
fcgi/PKGBUILD
Normal file
@@ -0,0 +1,33 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=fcgi
|
||||
pkgver=2.4.2
|
||||
pkgrel=2
|
||||
pkgdesc="FASTCgi (fcgi) is a language independent, high performant extension to CGI"
|
||||
arch=('i686' 'x86_64')
|
||||
license=('Expat')
|
||||
url='https://fastcgi-archives.github.io/'
|
||||
options=('!makeflags')
|
||||
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/FastCGI-Archives/fcgi2/archive/${pkgver}.tar.gz"
|
||||
"CVE-2025-23016.patch")
|
||||
sha512sums=('03aca9899eacfd54c878b30691cc4f8db957a065b46426d764003fd057cbf24b4e12ddd26c9b980d5d8965ca40831e415d330e9830529c0d4153400b5c2c8c02'
|
||||
'fa37ab2aefaa65225c9b240620a4de3100c30711c03f55d9a234966d1fc2c4e97e98b9eec80a1c73cc5f664f547bd455779c18145b8cd9ff74cf56754cf40bb5')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/fcgi2-${pkgver}"
|
||||
patch -Np1 -i ${srcdir}/CVE-2025-23016.patch
|
||||
./autogen.sh
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/fcgi2-${pkgver}"
|
||||
./configure \
|
||||
--prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/fcgi2-${pkgver}"
|
||||
make DESTDIR="${pkgdir}" install
|
||||
install -Dm0644 LICENSE.TERMS -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
}
|
||||
Reference in New Issue
Block a user