What should I do if actually I found a serious flaw in someone's PhD thesis and an article derived from that PhD thesis?
One possibility is for you to write a paper on your reanalysis. Often this would need to be something more than pointing out the flaw alone, but that may be discipline-dependent. If the flaw you have detected is a key part in your own analysis of your work, including your updated analysis in a larger article (while citing their paper) is a smooth way to point out how you had to change the method.
The second possibility is that many journals (at least in my area) allow for Comments on articles they have published. These are for just this purpose - to point out something 'wrong' about a paper that has been published. If the editors decide to proceed with it, the original authors are usually given an opportunity to craft a Reply piece to agree, disagree, alter, whatnot. Then they are published back-to-back in the journal.
Do not overthink it.
I have had similar experience and authors were reluctant at first (mostly because they have moved to another problem).
It is very dangerous to leave a flaw in the literature. Especially a critical flaw where others may build on it. This will lead to more chaos. I am aware some (well-known) people do not care about their old results being incorrect. But this is not what Academia is about. You should appreciate the peer review and rigorous findings more than anything else. You already have contacted the author, offer him a collaboration (if seems right) on correcting the whole thing in the context of your work.
You usually have spotted the error because your work is related. On that particular connection re-analyze the claim and correct it. Include in your new paper the claim, prove why it is incorrect and prove the new correct result. This actually can be seen as a new contribution to your paper/thesis.
For me, I was very satisfied with the outcome; the first author of the other paper did mentor me for a while after we met at a conference.
Write to the editor of the journal. Offer your explanation and ask for the best way forward. You might be lucky and be given a chance to write an article with your clarification. The editor might instead decide to do a correction with varying levels of acknowledgement of you.
article is cited for 15 times and nobody found that obvious problem
The problem is not obvious despite your initial impression. It may be worthwhile dissecting and contemplating the complexity of the blindspot in this area. Was it obvious to you because you come from a different perspective? Have experience from a different discipline? Interrogate why the issue was not obvious to at least 15 publication worthy authors and not to mention a larger number of editors and peer reviewers.