Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

apache/arrow-java
main @ 6e0b5f7
6
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Memory Safety: 2 prior fixes. Scrutinize any change in this area.
flight-core: most-fixed (2 issues). Treat as high-risk during review.
6 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Memory Safety: Zero-copy transfers in FlightRPC can cause use-after-free vulnerabilities if Netty's ByteBuf lifetime is not explicitly bound to the underlying native ArrowBuf allocations, leading to memory corruption or crashes under heavy write loads.
OutOfBoundsWrite: Incomplete buffer capacity validation and calculation errors within BaseVariableWidthViewVector can lead to memory corruption during copy operations. Developers must leverage handleSafe and copyFromNotNull to strictly validate target allocations.
Integer Overflow: Index-to-offset calculations in DenseUnionVector and UnionListWriter are vulnerable to integer overflows if multiplication is performed on standard 32-bit integers before casting to long, resulting in out-of-bounds native memory writes.