Skip to content

{bp-20049} fs/procfs: fix buffer overflow in mount_sprintf - #20079

Merged
xiaoxiang781216 merged 1 commit into
apache:releases/13.0from
jerpelea:bp-20049
Sep 7, 2026
Merged

{bp-20049} fs/procfs: fix buffer overflow in mount_sprintf#20079
xiaoxiang781216 merged 1 commit into
apache:releases/13.0from
jerpelea:bp-20049

Conversation

@jerpelea

@jerpelea jerpelea commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary

vsnprintf() returns the total formatted string length even when truncated to info->line. Passing this untruncated length to procfs_memcpy causes a read beyond the 64-byte line staging buffer.

Fixes #20011

Impact

RELEASE

Testing

CI

vsnprintf() returns the total formatted string length even when truncated to info->line. Passing this untruncated length to procfs_memcpy causes a read beyond the 64-byte line staging buffer.

Fixes apache#20011

Signed-off-by: Hritik Naik <hritiknaik16@gmail.com>
@github-actions github-actions Bot added Area: File System File System issues Size: XS The size of the change in this PR is very small labels Sep 7, 2026
@jerpelea

jerpelea commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

CI fix
apache/nuttx-apps#3775

@xiaoxiang781216
xiaoxiang781216 merged commit 11e3197 into apache:releases/13.0 Sep 7, 2026
21 of 41 checks passed
@jerpelea
jerpelea deleted the bp-20049 branch September 7, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: File System File System issues Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants