[LTS 9.4] net: pktgen: fix access outside of user given buffer in pktgen_thread… #380
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 9.4]
CVE-2025-38061
VULN-70913
Problem
https://lore.kernel.org/linux-cve-announce/2025061835-CVE-2025-38061-caa2@gregkh/T/#u
Applicability: yes (similar as in #376)
See
kernel-src-tree/net/core/pktgen.c
Line 1770 in 8a6224a
kernel-src-tree/net/core/pktgen.c
Line 1800 in 8a6224a
The
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 (same as in #376)
Mainline fix in 425e644. Applies to
ciqlts9_4
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
(excepttc_actions.sh
,vxlan_bridge_1d_ipv6.sh
,ipip_hier_gre_keys.sh
,router_bridge_1d_lag.sh
,mirror_gre_vlan_bridge_1q.sh
,sch_red.sh
,dual_vxlan_bridge.sh
,tc_police.sh
,sch_tbf_ets.sh
,sch_tbf_prio.sh
,q_in_vni.sh
,mirror_gre_bridge_1d_vlan.sh
,sch_ets.sh
,router_bridge_lag.sh
,sch_tbf_root.sh
,ip6gre_inner_v6_multipath.sh
),net/hsr
,net/mptcp
(exceptuserspace_pm.sh
,simult_flows.sh
),net
(exceptsrv6_end_flavors_test.sh
,fib_nexthops.sh
,xfrm_policy.sh
,txtimestamp.sh
,srv6_end_dt46_l3vpn_test.sh
,reuseaddr_conflict
,reuseport_addr_any.sh
,gro.sh
,ip_defrag.sh
,srv6_end_dt4_l3vpn_test.sh
,udpgro_fwd.sh
,srv6_end_dt6_l3vpn_test.sh
,udpgso_bench.sh
),netfilter
(exceptnft_trans_stress.sh
)Reference
kselftests–ciqlts9_4–run1.log
Patch
kselftests–ciqlts9_4-CVE-2025-38061–run1.log
Comparison
The reference and patch kernel results are the same.
Specific tests: skipped