[LTS 9.4] udmabuf: fix a buf size overflow issue during udmabuf creation #390
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-37803
VULN-67674
Problem
https://nvd.nist.gov/vuln/detail/CVE-2025-37803
Background
See "Background" section in #389.
Applicability: yes
The
udmabuf
module is enabled withy
in all configuration variants for LTS 9.4:The conversion found in
kernel-src-tree/drivers/dma-buf/udmabuf.c
Line 189 in fe9c582
u64
cast mentioned in the CVE.Solution
Mainline fix contained in 021ba7f. Applies to
ciqlts9_4
without any issues.kABI check: passed
Boot test: passed
boot-test.log
Kselftests: passed
Coverage
A selftest exists in LTS 9.4 testing the
udmabuf
module directly:drivers/dma-buf:udmabuf
. It was run several times on a reference and patched kernel.Reference
kselftests-udmabuf–ciqlts9_4–run1.log
kselftests-udmabuf–ciqlts9_4–run2.log
kselftests-udmabuf–ciqlts9_4–run3.log
kselftests-udmabuf–ciqlts9_4–run4.log
kselftests-udmabuf–ciqlts9_4–run5.log
kselftests-udmabuf–ciqlts9_4–run6.log
Patch
kselftests-udmabuf–ciqlts9_4-CVE-2025-37803–run1.log
kselftests-udmabuf–ciqlts9_4-CVE-2025-37803–run2.log
kselftests-udmabuf–ciqlts9_4-CVE-2025-37803–run3.log
kselftests-udmabuf–ciqlts9_4-CVE-2025-37803–run4.log
kselftests-udmabuf–ciqlts9_4-CVE-2025-37803–run5.log
kselftests-udmabuf–ciqlts9_4-CVE-2025-37803–run6.log
Comparison
The test results in reference and patch are the same, and all are passing.
Specific tests: passed
For the explanation of the meaning of the below tests see "Commentary and the specific tests" section of #389.
Reference
An overflow occurs for
size_limit_mb = 4096
Patch
No overflow is observed for the same size limit: