If behind the USB port is some (writeable) data storage (for PDF manuals etc) this is quite possible.
If the USB chargers in cockpits are any more complex than the above, why?
No idea how the rest of the exploit would work in this scenario though, I have a hard time believing it.