The agreement specifically covers the use of "certain Linux-based products" in Samsung devices, the companies said.
Financial details were not disclosed, but both parties will receive monetary payments as compensation for their intellectual property portfolios.
The deal marks a second patent agreement in which Microsoft succeeded in indirectly obtaining licence fees from Linux.
Microsoft has stated publicly that it believes Linux infringes on its intellectual property, although it has never sought to uphold such claims in court.
Although several businesses welcomed the deal, it was met with harsh criticism from open source advocates.
The agreement validates Microsoft's intellectual property claims over Linux, but the critics believe that claims were false to begin with.
The Linux kernel and many other applications that ship with the operating system are governed by the General Public Licence.
An upcoming revision of the licence has been specifically written to prevent patent deals such as those between Microsoft and Novell, and is likely to also block the Samsung agreement.
Latest Tesla news: Tesla stock price tanks amid reports of 'widening probe' by SEC and claims the base Model 3 loses money
SEC 'probe' takes its toll on Tesla as new research suggests that Tesla loses $6,000 on every $35,000 Model 3
10nm Cannon Lake Core i3-8121U CPUs make a rare outing with Intel's NUC mini PC
'Notorious' Australian child hacker thought he had executed 'flawless' hack
The former employee says that Tesla fired him for bringing the accusations to management internally