A wine can taste wrong for a number of reasons, and knowing which are genuine faults is worth something practical, since a faulty bottle can be returned and a wine you simply dislike cannot.
The complication is that a few of these characteristics are considered faults by some drinkers and features by others, which makes the boundary less clean than it first appears.
The unambiguous faults
Cork taint, caused by TCA, gives a musty wet cardboard character and strips out fruit. It is the best known and the most straightforward to return.
Oxidation is the next most common. Air has reached the wine, either through a failed seal or poor storage, and the result is a wine that has gone brown or deeply golden, smells of bruised apple or sherry, and tastes flat and lifeless. In a young wine this is clearly a fault; in a mature one, a degree of oxidative character is normal development.
Heat damage, sometimes called maderisation, comes from a bottle being stored somewhere hot. The wine tastes stewed and cooked, the fruit is dull, and the giveaway is often physical: a cork pushed slightly proud of the bottle, or sticky residue around the capsule where wine has expanded and leaked. This is a storage or transport failure and entirely returnable.
Refermentation in a wine that should be still, producing an unexpected spritz along with cloudiness and a yeasty smell, is a fault. A very faint prickle in some young white wines, by contrast, is deliberate.
The contested ones
Volatile acidity, usually abbreviated to VA, gives vinegar and nail-varnish aromas. Every wine has some, and at low levels it adds lift and complexity. At high levels it dominates and the wine is faulty. Where the line sits is genuinely a matter of judgement.
Brettanomyces, universally called brett, is a yeast producing farmyard, leather, horse and sticking-plaster aromas. Some drinkers regard a trace of it as characterful, particularly in certain traditional regions, and others find any amount unacceptable. Heavy brett flattens the fruit and is a fault by most standards.
Reduction produces struck-match, rubber, cabbage or rotten-egg smells from sulphur compounds. A little is deliberate in some styles and adds a flinty complexity. The test is whether it disappears with air: pour the wine into a decanter or swirl it vigorously for a minute, and mild reduction will blow off. If it persists or worsens, the bottle is faulty.
Light strike affects wines in clear bottles exposed to fluorescent or sunlight, producing a cooked cabbage or wet wool smell. It is a genuine fault and one that ought to be raised with retailers who display wine badly.
The thing that is not a fault
Tartrate crystals, small clear or purple-tinged crystals in the bottom of a bottle or clinging to the underside of a cork, are the most frequent cause of unnecessary complaints. They are naturally occurring tartaric acid salts that precipitate when a wine gets cold.
They are harmless, tasteless and if anything a mild positive sign, indicating that the wine has not been aggressively cold-stabilised. They are sometimes called wine diamonds, and a bottle containing them is not defective.
How to raise it
In a shop, take the bottle back with as much of the wine remaining as possible and say what you found. Reputable merchants and supermarkets replace faulty wine as a matter of course, and cork taint in particular is a known and accepted cost of doing business.
In a restaurant, say so quietly when you taste it. A corked or oxidised bottle should be replaced without argument. What you cannot do is return a wine because it is not to your taste, which is why asking a sommelier for a recommendation before ordering is a better strategy than hoping.