aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorAlexandro Calo <alexandro.calo@nozominetworks.com>2026-07-08 12:04:37 +0200
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2026-09-24 17:32:32 +0200
commit4d7e2c4c6329b80dd0ff5674fa23a92f9dcf5b16 (patch)
treea7d17f5e0897061389524016730b87991cb216e2 /scripts/Makefile.thinlto
parentfs/ntfs3: Fix heap overflow after ALIGN in mi_pack_runs() (diff)
Fix OOB write if err == buflen in ntfs_readlink_hlp()
ntfs_utf16_to_nls() may return buflen. The caller later uses the returned length as the index for writing the trailing NUL byte, so err == buflen writes one byte past the end of buffer. Fix this by limiting err to the last valid buffer index before writing NUL. ntfs_utf16_to_nls() returning a negative value is already handled by if (err < 0) goto out; As long as buflen is guaranteed to be nonzero the patch is fine. As a defensive fix if(buflen==0) could be added. This heap out-of-bounds write requires a crafted filesystem image, which is not in the kernel threat model, but fixing memory errors would be nice to keep things secure. Signed-off-by: Alexandro Calo <alexandro.calo@nozominetworks.com> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions