[LTS 8.6] net: pktgen: fix access outside of user given buffer in pktgen_thread… #376
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[LTS 8.6]
CVE-2025-38061
VULN-70907
Problem
https://lore.kernel.org/linux-cve-announce/2025061835-CVE-2025-38061-caa2@gregkh/T/#u
Applicability: yes
See
kernel-src-tree/net/core/pktgen.c
Line 893 in b9fae43
kernel-src-tree/net/core/pktgen.c
Line 1811 in b9fae43
count
argument is ignored in thestrn_len()
calculation.The
CONFIG_NET_PKTGEN
option enabling the affected filenet/core/pktgen.c
ism
for most configuration variants:The module itself is called
pktgen
and is used to generate network packets for testing:https://www.kernelconfig.io/CONFIG_NET_PKTGEN?q=CONFIG_NET_PKTGEN&kernelversion=5.15.183&arch=x86
Solution
Mainline fix in 425e644. Applies to
ciqlts8_6
without modifications.kABI check: passed
Boot test: passed
boot-test.log
Kselftests: passed relative
Coverage
All the network-related tests except the unstable ones.
net/forwarding
(exceptmirror_gre_bridge_1d_vlan.sh
,sch_ets.sh
,sch_tbf_prio.sh
,mirror_gre_vlan_bridge_1q.sh
,sch_tbf_root.sh
,tc_actions.sh
,sch_tbf_ets.sh
,ipip_hier_gre_keys.sh
),net/mptcp
(exceptsimult_flows.sh
),net
(exceptudpgso_bench.sh
,reuseaddr_conflict
,ip_defrag.sh
,reuseport_addr_any.sh
,gro.sh
,xfrm_policy.sh
,txtimestamp.sh
,udpgro_fwd.sh
),netfilter
(exceptnft_trans_stress.sh
)Reference
kselftests–ciqlts8_6–run1.log
kselftests–ciqlts8_6–run2.log
Patch
kselftests–ciqlts8_6-CVE-2025-38061–run1.log
kselftests–ciqlts8_6-CVE-2025-38061–run2.log
Comparison
The reference and patch kernel results are the same
Specific tests: skipped