Not a helpful takeaway, I've yet to see a Java kernel driver.
Because of the nature of AV software, its code would be drowning in "unsafe" memory accesses no matter the language we chose. This is AV, it's always trying to read the memory that is not AV's, from its very design.
This is a story about bad software management processes, not programming languages.
To give an example from the linux userspace world: https://docs.rust-embedded.org/rust-sysfs-gpio/nix/sys/uio/f...