Old English borrowed Latin linum as līn, flax. Līnen was formed from that noun and passed through Middle English.
Middle English is compressed. Greek linon is a related word, not an additional borrowing stage.
Sources
- Merriam-Webster: linen
Latin linum precedes Old English līn and līnen, then English linen through Middle English.
- Online Etymology Dictionary · linen
Meanings of the older forms on the word path.