It really depends on the country, in the UK the Sales of Goods Act guarantees you the rights to file a complaint period of 6 years.
Most white goods are sold with a longer service period guarantee by the manufacturer, and those who aren't the retailer often provides more at a small fee or even "free".
Samsung, LG and the rest provide upto 5 years full warranty on both parts and labor for white goods in the UK, technically it's often paid but pretty much every place you go has a promotion which gives you the extra 2-3 years for "free".
http://www.samsung.com/uk/fiveyearwarranty/
That said it's important to note that the warranty period and the service period are 2 different things, the warranty period is how long the manufacturer will provide free cover to either parts labor or both, and the service period is how long would the manufacturer make parts and labor available and offer service and repair to the item.
As a rule of thumb the service period is usually 2-3 times the length of the warranty period.
P.S.
The SOGA/CPA acts in the UK are pretty good as far as security and other software related bugs go because one of the things that need to be proven is that the problem was there at the time of purchase (or was introduced by the manufacturer) and this is very easy to do with security bugs since they are in the software, software can introduce bugs on its own (yet) this isn't a pipe that fails.
I got a 5 year old router replaced based on this act recently, if the seller gives you trouble then the ombudsman services solve it pretty darn quickly (http://www.consumer-ombudsman.org/) since they will answer complaints immidiatly.