Security context

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

java-native-access/jna
master @ d036ad9
2
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Access Control: 1 prior fix. Scrutinize any change in this area.
native/callback.c: most-fixed (1 issue). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns

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

Memory Corruption: Incorrect fixed argument count in ffi_prep_cif_var can corrupt memory on direct callbacks, especially on macOS aarch64. This is a high-severity native-level bug that can lead to crashes or arbitrary code execution.
Access Control: Using a shared temp directory without a username component allows local privilege escalation via directory permission conflicts. The fix isolates the directory per user.