It is just as trivial. Cleartext Passwords in Linux Memory
"...that data from memory can be recovered with physical access to systems in a very short period of time." from the abstract of the paper that appears in the first few search results.
That leads me to believe it is not as trivial b/c an intruder needs physical access.