Linux is a free/libre and open source kernel explicitly released under the GNU General Public License. It was created as an alternative to the proprietary Unixes of the time.
Free Software is all about providing essential freedoms/liberties to all users of the software. The Linux kernel also enforces a progressive Code of Conduct for contributors. These could both be seen as a political stance, and thus Linux could be considered political.
At the same time, the Linux kernel is just code, and can be used by anyone for any purpose—politics aside. In this way, Linux could be considered apolitical.