summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Marko <peter.marko@siemens.com>2025-01-26 12:01:07 +0100
committerArmin Kuster <akuster808@gmail.com>2025-02-04 14:41:42 -0800
commit988751415d80e01c4e202ba50b9a4acbbca41c49 (patch)
tree4e5baf9ffa8e643a627ffaa5cf33ff5a7ae3dbc0
parentd7e5d4796cfa194f59c2a6b9825d931f8bfc3616 (diff)
downloadmeta-openembedded-988751415d80e01c4e202ba50b9a4acbbca41c49.tar.gz
python3-grpcio: patch CVE-2024-11407
Cherry-pick commit [1] mentioned in [2]. [1] https://github.com/grpc/grpc/commit/e9046b2bbebc0cb7f5dc42008f807f6c7e98e791 [2] https://nvd.nist.gov/vuln/detail/CVE-2024-11407 Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-python/recipes-devtools/python/python3-grpcio/CVE-2024-11407.patch32
-rw-r--r--meta-python/recipes-devtools/python/python3-grpcio_1.62.2.bb1
2 files changed, 33 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-grpcio/CVE-2024-11407.patch b/meta-python/recipes-devtools/python/python3-grpcio/CVE-2024-11407.patch
new file mode 100644
index 0000000000..eef5e7239e
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-grpcio/CVE-2024-11407.patch
@@ -0,0 +1,32 @@
1From e9046b2bbebc0cb7f5dc42008f807f6c7e98e791 Mon Sep 17 00:00:00 2001
2From: Vignesh Babu <vigneshbabu@google.com>
3Date: Thu, 12 Sep 2024 11:13:45 -0700
4Subject: [PATCH] [EventEngine] Fix bug in Tx0cp code path in posix endpoint.
5
6This fix ensures that the iov_base pointers point to the right address.
7
8PiperOrigin-RevId: 673923651
9
10CVE: CVE-2024-11407
11Upstream-Status: Backport [https://github.com/grpc/grpc/commit/e9046b2bbebc0cb7f5dc42008f807f6c7e98e791]
12Signed-off-by: Peter Marko <peter.marko@siemens.com>
13---
14 src/core/lib/event_engine/posix_engine/posix_endpoint.cc | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/src/core/lib/event_engine/posix_engine/posix_endpoint.cc b/src/core/lib/event_engine/posix_engine/posix_endpoint.cc
18index 7634bb1334b..c5708db02c5 100644
19--- a/src/core/lib/event_engine/posix_engine/posix_endpoint.cc
20+++ b/src/core/lib/event_engine/posix_engine/posix_endpoint.cc
21@@ -240,7 +240,7 @@ msg_iovlen_type TcpZerocopySendRecord::PopulateIovs(size_t* unwind_slice_idx,
22 iov_size++) {
23 MutableSlice& slice = internal::SliceCast<MutableSlice>(
24 buf_.MutableSliceAt(out_offset_.slice_idx));
25- iov[iov_size].iov_base = slice.begin();
26+ iov[iov_size].iov_base = slice.begin() + out_offset_.byte_idx;
27 iov[iov_size].iov_len = slice.length() - out_offset_.byte_idx;
28 *sending_length += iov[iov_size].iov_len;
29 ++(out_offset_.slice_idx);
30--
312.30.2
32
diff --git a/meta-python/recipes-devtools/python/python3-grpcio_1.62.2.bb b/meta-python/recipes-devtools/python/python3-grpcio_1.62.2.bb
index 59bfbf5538..b12b509142 100644
--- a/meta-python/recipes-devtools/python/python3-grpcio_1.62.2.bb
+++ b/meta-python/recipes-devtools/python/python3-grpcio_1.62.2.bb
@@ -12,6 +12,7 @@ SRC_URI += "file://0001-Include-missing-cstdint-header.patch \
12 file://0001-crypto-use-_Generic-only-if-defined-__cplusplus.patch;patchdir=third_party/boringssl-with-bazel/src/ \ 12 file://0001-crypto-use-_Generic-only-if-defined-__cplusplus.patch;patchdir=third_party/boringssl-with-bazel/src/ \
13 file://0001-target.h-define-proper-macro-for-ppc-ppc64.patch \ 13 file://0001-target.h-define-proper-macro-for-ppc-ppc64.patch \
14 file://0001-PR-1644-unscaledcycleclock-remove-RISC-V-support.patch \ 14 file://0001-PR-1644-unscaledcycleclock-remove-RISC-V-support.patch \
15 file://CVE-2024-11407.patch \
15 " 16 "
16SRC_URI[sha256sum] = "c77618071d96b7a8be2c10701a98537823b9c65ba256c0b9067e0594cdbd954d" 17SRC_URI[sha256sum] = "c77618071d96b7a8be2c10701a98537823b9c65ba256c0b9067e0594cdbd954d"
17 18