mid-14c., from verbal noun from fry (v.) + pan (n.). To go out of the frying-pan into the fire ("from a bad situation to a worse one") is first attested in Thomas More (1532).
frustrated
frustration
frustum
fry
fryer
frying-pan
fubar
fubsy
fuchsia
fuck
fucker